Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #37251

Re: pycache directories

From Terry Reedy <tjreedy@udel.edu>
Subject Re: pycache directories
Date 2013-01-22 01:01 -0500
References <841fcc01-df05-4a8b-8b4f-1217c49aac44@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.778.1358834539.2939.python-list@python.org> (permalink)

Show all headers | View raw


On 1/21/2013 11:55 PM, monosij.forums@gmail.com wrote:
> I am doing some OO python3 where I am using multiple dirs/sub-dirs.
>
> So everything works fine, however when I run code __pycache__
> directories are being created in every directory touched by the
> execution.

This is much better than having multiple .pyc files in every directory, 
as in Py2. You should soon learn to ignore them.

> Is it possible to set a configuration to be able to create these
> pycache directories in a specific location?

No. (I am very sure.) You can however, not have the .pyc files written, 
but that means recompile with every run. So that option is meant for 
running off a read-only medium.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

pycache directories monosij.forums@gmail.com - 2013-01-21 20:55 -0800
  Re: pycache directories Terry Reedy <tjreedy@udel.edu> - 2013-01-22 01:01 -0500
    Re: pycache directories monosij.forums@gmail.com - 2013-01-22 15:44 -0800
    Re: pycache directories monosij.forums@gmail.com - 2013-01-22 15:44 -0800

csiph-web