STINNER Victor <vstin...@python.org> added the comment:
See also bpo-20443 "__code__. co_filename should always be an absolute path". I had a revert a change which affected sys.argv[0]: commit a1a99b4bb7cbe2dbc55a1d92c3c509b4466d3c3b Author: Victor Stinner <vstin...@python.org> Date: Mon Dec 9 17:34:02 2019 +0100 bpo-20443: No longer make sys.argv[0] absolute for script (GH-17534) In Python 3.9.0a1, sys.argv[0] was made an asolute path if a filename was specified on the command line. Revert this change, since most users expect sys.argv to be unmodified. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue14088> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com