[Pythonmac-SIG] Bug Report: Python debugger can't find source code for modules

Richard Brooksby rb@ravenbrook.com
Tue, 14 Nov 2000 11:38:07 +0000


At 2000-11-13 14:49 +0100, Jack Jansen wrote:

>  > >If you move Python you're best off removing *all* files with 
>"Python" in their
>>  >name from the system folder. This includes the Python preferences, the IDE
>>  >preferences and the alias to PythonCore.
>>  >
>>  >After this run ConfigurePython from the Python folder.
>>
>>  This has no effect, I'm afraid.
>
>Ah, bingo! You also have to remove all the .pyc files from your Python tree.
>These have been compiled while the tree was still in the old location, so the
>__file__ attributes will point there, which will cause the debugger to look in
>the wrong place.

Great, thanks.

May I suggest this goes in the docs?