]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-20443: No longer make sys.argv[0] absolute for script (GH-17534)
authorVictor Stinner <vstinner@python.org>
Mon, 9 Dec 2019 16:34:02 +0000 (17:34 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Dec 2019 16:34:02 +0000 (17:34 +0100)
commita1a99b4bb7cbe2dbc55a1d92c3c509b4466d3c3b
treeffc1e3e7fc999d447331fb9cfd9d1cebf10177b2
parentd219cc4180e7589807ebbef7421879f095e72a98
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.
Lib/test/test_cmd_line_script.py
Lib/test/test_embed.py
Misc/NEWS.d/next/Core and Builtins/2019-12-09-17-05-53.bpo-20443.8OyT5P.rst [new file with mode: 0644]
Python/initconfig.c