[issue7774] sys.executable: wrong location if zeroth command argument is modified.

Florent Xicluna report at bugs.python.org
Thu Feb 11 10:51:08 CET 2010


Florent Xicluna <laxyf at yahoo.fr> added the comment:

Similar failures with or without argv 0:

 ~ $ sh -c 'exec -a missing ./python -c "import sys; print sys.executable"'
/home/user/dev/python/trunk/

 ~ $ sh -c 'exec -a "" ./python -c "import sys; print sys.executable"'
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
/usr/bin/python

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7774>
_______________________________________


More information about the Python-bugs-list mailing list