1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

use the constructed exename

This commit is contained in:
Marcus Smith 2012-10-02 07:48:54 -07:00
parent aa5b33dbf4
commit 2d3cd9d076

View file

@ -58,7 +58,7 @@ def fix_script(path):
if not firstline.startswith(binary('#!python')):
return False
exename = sys.executable.encode(sys.getfilesystemencoding())
firstline = binary('#!') + sys.executable + binary(os.linesep)
firstline = binary('#!') + exename + binary(os.linesep)
rest = script.read()
finally:
script.close()