Reputation: 3191
Not really able to find any information on this - I haven't had the problem before, and I've checked what there was to read. Yes I've deleted the .pyc files (obviously), no I'm not loading or importing across multiple modules, I'm trying to run the program directly, I've even committed the changes to Git just to see what it would think - and it's still running an old version of the file. I have no idea where or how to debug this. Thanks.
Upvotes: 0
Views: 80
Reputation: 7616
Very likely it is importing a module somewhere else on your system, assuming you're not running interactive and haven't restart it.
You can try:
python -v myprogram.py
And it will tell you every single file it imports (including any .pyc
files).
Upvotes: 1