[issue7774] sys.executable: wrong location if zeroth command argument is modified.
Florent Xicluna
report at bugs.python.org
Thu Mar 11 03:29:19 CET 2010
Florent Xicluna <florent.xicluna at gmail.com> added the comment:
Actually there's 3 steps to fix this:
1) do not absolutize the sys.executable if it is empty (in Modules/getpath.c)
2) change sysconfig.py to deal with empty sys.executable (see this patch)
3) do a best effort to provide a valid sys.executable.
It should be possible in most cases.
See message above for details on (3):
http://bugs.python.org/issue7774#msg98284
Patch attached for (2). (Fixes tests)
----------
keywords: +patch
Added file: http://bugs.python.org/file16521/issue7774_sysconfig.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7774>
_______________________________________
More information about the Python-bugs-list
mailing list