Message400787
| Author |
vstinner |
| Recipients |
alvesjnr, eric.araujo, iritkatriel, ned.deily, petri.lehtinen, pitrou, vstinner |
| Date |
2021年08月31日.21:58:43 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1630447124.02.0.725758887599.issue14088@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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 <vstinner@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. |
|