It seems that sometimes when I pull from the git the old .pyc runs instead of the new pulled .py file is there a way to automatically clear the .pyc file so it runs always the fresh version ?
It seems that sometimes when I pull from the git the old .pyc runs
Share
The old
.pycis automatically cleared by Python, provided the modified date on the.pyfile is newer.You could manually delete all
.pycfiles in a directory structure with:and Python will re-create them as modules are imported. You can also run:
to force a compilation.