STINNER Victor <victor.stin...@haypocalc.com> added the comment:

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'

----------
Added file: http://bugs.python.org/file16523/getpath.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7774>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to