Bugs item #1181619, was opened at 2005-04-12 18:49 Message generated for change (Comment added) made by theller You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1181619&group_id=5470
Category: Distutils Group: Platform-specific >Status: Closed >Resolution: Rejected 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. ---------------------------------------------------------------------- >Comment By: Thomas Heller (theller) Date: 2005-04-19 21:46 Message: Logged In: YES user_id=11105 I interpreted the docs you quote as 'the Python interpreter that is currently running' and not 'the Python interpreter that is normally used'. OTOH, it's too late to change this for 2.4 anyway. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1181619&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com