Stop python from creating .pyc files
Dev environment filled with .pyc files? Set an environmental variable to turn off pyc file generation
echo "PYTHONDONTWRITEBYTECODE=true" >> ~/.bash_profile
http://docs.python.org/2/using/cmdline.html#envvar-PYTHONDONTWRITEBYTECODE
Written by Julian Simioni
Related protips
1 Response
but there is a reason for those files...
normally you want that written bytecode, so i find it better to just insert a single line into gitignore or the likes.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Related Tags
#python
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#