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

Jack Jansen jack@oratrix.nl
Mon, 13 Nov 2000 14:49:56 +0100


> >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.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm