Issue #7774: Set sys.executable to an empty string if argv[0] has been
authorvictor.stinner <victor.stinner@6015fed2-1504-0410-9fe1-9d1591cc4771>
Thu, 11 Mar 2010 12:34:39 +0000 (12:34 +0000)
committervictor.stinner <victor.stinner@6015fed2-1504-0410-9fe1-9d1591cc4771>
Thu, 11 Mar 2010 12:34:39 +0000 (12:34 +0000)
commit525aa83847f30f393491733de7461b1cb079d6a6
tree76851fc535554cbd47473b419fd9141133efba4f
parenta61704bb9140f1bb6a7c7ba93e0943041f5bfd23
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.

git-svn-id: http://svn.python.org/projects/python/trunk@78835 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/sysconfig.py
Lib/test/test_sys.py
Misc/NEWS
Modules/getpath.c