Phillip J. Eby wrote: > Are you using Python 2.5? As of 2.5, the linecache module should > correctly read the source line from the present location of the source > file the module was loaded from, regardless of the file name specified > in the traceback.
I think it was doing that, but I was trying to find the file, and the traceback wasn't helping. > A better fix would be for Python to use relative paths in co_filename, > as this would fix similar problems that occur whenever you move > .pyc/.pyo files around. Yes, it must be possible to do something better. The actual path is known when the module is loaded, so it should just be a matter of storing it somewhere appropriate. -- Greg _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com