Message346262
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 |
|
Date |
User |
Action |
Args |
2019-06-21 22:35:17 | vstinner | set | recipients:
+ vstinner, ncoghlan, r.david.murray, yselivanov |
2019-06-21 22:35:17 | vstinner | set | messageid: <1561156517.54.0.717835022931.issue20443@roundup.psfhosted.org> |
2019-06-21 22:35:17 | vstinner | link | issue20443 messages |
2019-06-21 22:35:17 | vstinner | create | |
|