This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients ezio.melotti, flox, jnoller, pitrou, ronaldoussoren, schmir, tarek, vstinner
Date 2010-03-11.11:30:32
SpamBayes Score 5.304712e-05
Marked as misclassified No
Message-id <1268307035.58.0.457722173269.issue7774@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
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: <1268307035.58.0.457722173269.issue7774@psf.upfronthosting.co.za>
2010-03-11 11:30:34vstinnerlinkissue7774 messages
2010-03-11 11:30:33vstinnercreate