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:
parent
aa5b33dbf4
commit
2d3cd9d076
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue