This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients ncoghlan, r.david.murray, vstinner, yselivanov
Date 2019-06-21.22:35:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561156517.54.0.717835022931.issue20443@roundup.psfhosted.org>
In-reply-to
Content
Effect of my PR 14053 using script.py:

import sys
print(f"{__file__=}")
print(f"{sys.argv=}")
print(f"{sys.path[0]=}")

Before:

$ ./python script.py 
__file__=script.py
sys.argv=['script.py']
sys.path[0]=/home/vstinner/prog/python/master

With the change:

$ ./python script.py 
__file__=/home/vstinner/prog/python/master/script.py
sys.argv=['/home/vstinner/prog/python/master/script.py']
sys.path[0]=/home/vstinner/prog/python/master
History
Date User Action Args
2019-06-21 22:35:17vstinnersetrecipients: + vstinner, ncoghlan, r.david.murray, yselivanov
2019-06-21 22:35:17vstinnersetmessageid: <1561156517.54.0.717835022931.issue20443@roundup.psfhosted.org>
2019-06-21 22:35:17vstinnerlinkissue20443 messages
2019-06-21 22:35:17vstinnercreate