leftover pyc files

Andrea Crotti andrea.crotti.0 at gmail.com
Wed Nov 2 12:43:53 EDT 2011


On 11/02/2011 04:06 PM, Chris Kaynor wrote:
> If you can at least upgrade to Python 2.6, another option, if you
> don't mind losing the byte code caching all together (it may worsen
> load times, however probably not significantly), you can set
> PYTHONDONTWRITEBYTECODE to prevent the writing of .pyc files.
> Alternatively, again in 2.6+, you can also specify the -B command-line
> argument. See http://docs.python.org/using/cmdline.html#envvar-PYTHONDONTWRITEBYTECODE
> and http://docs.python.org/using/cmdline.html#cmdoption-unittest-discover-B
>
> Chris
>

Unfortunately not possible :(
So well the hand-made removal is also fine, maybe if I'm able to run it
as a service it should not impact on the run-time either, which would be
nice...



More information about the Python-list mailing list