]> granicus.if.org Git - python/commit
Issue #7774: Set sys.executable to an empty string if argv[0] has been
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 11 Mar 2010 12:34:39 +0000 (12:34 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 11 Mar 2010 12:34:39 +0000 (12:34 +0000)
commit4a7e0c858c624eee49b9b1a977c887f5b49d0fd4
tree7d40b555b47d3d472e6192803f8aaa051bae31cc
parent637637021a52d083f47dfdd6dd0cc16e31696409
Issue #7774: Set sys.executable to an empty string if argv[0] has been
set to an non existent program name and Python is unable to retrieve the real
program name.

Fix also sysconfig: if sys.executable is an empty string, use the current
working directory.
Lib/sysconfig.py
Lib/test/test_sys.py
Misc/NEWS
Modules/getpath.c