STINNER Victor <vstin...@redhat.com> added the comment:
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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue20443> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com