We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b993f0 commit 1d49aa3Copy full SHA for 1d49aa3
src/pip/_internal/operations/install/wheel.py
@@ -418,10 +418,8 @@ class PipScriptMaker(ScriptMaker):
418
import sys
419
from %(module)s import %(import_name)s
420
if __name__ == '__main__':
421
- if sys.argv[0].endswith('-script.pyw'):
422
- sys.argv[0] = sys.argv[0][: -11]
423
- elif sys.argv[0].endswith('.exe'):
424
- sys.argv[0] = sys.argv[0][: -4]
+ if sys.argv[0].endswith('.exe'):
+ sys.argv[0] = sys.argv[0][:-4]
425
sys.exit(%(func)s())
426
"""
427
0 commit comments