[issue9323] trace.py bug with the main file being traced
report at bugs.python.org
Mon Sep 13 16:12:13 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
> The full path *could* be easily passed, but I think we should
> address this problem from regrtest.py's side.
I disagree. There may be other scripts that rely on __main__.__file__ being an absolute path and we cannot require everyone to change their assumptions to make their scripts traceable.
It looks like absolute path assumption was added by Florent in r78723 (r78719 in trunk). Florent, I would like to hear from you before deciding how to proceed. See also issue #7712.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list