[ python-Bugs-1181619 ] Bad sys.executable value for bdist_wininst install script

SourceForge.net noreply at sourceforge.net
Tue Apr 19 16:34:25 CEST 2005


Bugs item #1181619, was opened at 2005-04-12 17:49
Message generated for change (Settings changed) made by mwh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1181619&group_id=5470

Category: Distutils
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: follower (xfollower)
>Assigned to: Thomas Heller (theller)
Summary: Bad sys.executable value for bdist_wininst install script

Initial Comment:
Description copied from:
 <http://groups.google.com/groups?selm=mailman.1490.1106904639.22381.python-list%40python.org>

>From the Python docs, sys.executable is:

executable
    A string giving the name of the executable binary
for the Python interpreter, on systems where this makes
sense.

However, during the execution of a post-install script,
this string actually resolves to the name of the binary
installer!  This name should resolve, I think to the
name of the Python executable for which the installer
is running (a value selectable at the start of the
installation, if more than one Python is detected). 
Having this value available allows you to properly
generate shortcuts with the proper full path to the
python executable.

I resorted to using sys.prefix+r'\python.exe', which
will most likely work, but I'd rather see
sys.executable give me a more sensible answer.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1181619&group_id=5470


More information about the Python-bugs-list mailing list