Author vstinner
Recipients ezio.melotti, flox, jnoller, pitrou, ronaldoussoren, schmir, tarek, vstinner
Date 2010-03-11.11:30:32
SpamBayes Score 5.30471e-05
Marked as misclassified No
Message-id <>
getpath.patch: another patch written by flox. If argv[0] is set to a non existent program name, sys.executable is set to an empty string instead of a directory name.

Example of the bug with Python 2.5:

$ sh -c "exec -a xxx python -c 'import sys, os; print repr(sys.executable), repr(os.getcwd())'"
'/home/haypo/' '/home/haypo'
Date User Action Args
2010-03-11 11:30:35vstinnersetrecipients: + vstinner, ronaldoussoren, pitrou, schmir, tarek, jnoller, ezio.melotti, flox
2010-03-11 11:30:35vstinnersetmessageid: <>
2010-03-11 11:30:34vstinnerlinkissue7774 messages
2010-03-11 11:30:33vstinnercreate