pycache directories

monosij.forums at gmail.com monosij.forums at gmail.com
Tue Jan 22 18:44:06 EST 2013


On Tuesday, January 22, 2013 1:01:44 AM UTC-5, Terry Reedy 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

Thanks Terry. I understand needing to adjust.
Appreciate this forum.

Monosij



More information about the Python-list mailing list