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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4