[issue35595] Add sys flag to always show full paths in stack traces (instead of relative paths)

2018-12-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue35595] Add sys flag to always show full paths in stack traces (instead of relative paths)

2018-12-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: Python 2.7 is (almost) end of life and well beyond feature-freeze, so this can only go into 3.8 or better. Since the paths logged are relative to the current working directory, perhaps you could just have your script log the working directory? -- n

[issue35595] Add sys flag to always show full paths in stack traces (instead of relative paths)

2018-12-27 Thread Scott Arciszewski
New submission from Scott Arciszewski : I have a wsgi script writing to a log file. The contents look like this (truncated): File "build/bdist.linux-x86_64/egg/trac/ticket/query.py", line 284, in _count % sql, args)[0][0] File "build/bdist.linux-x86_64/egg/trac/db/api.py", line 122, in