Skip to content

Commit 1d49aa3

Browse files
committed
Address PR review
1 parent 9b993f0 commit 1d49aa3

File tree

1 file changed

+2
-4
lines changed
  • src/pip/_internal/operations/install

1 file changed

+2
-4
lines changed

src/pip/_internal/operations/install/wheel.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,8 @@ class PipScriptMaker(ScriptMaker):
418418
import sys
419419
from %(module)s import %(import_name)s
420420
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]
421+
if sys.argv[0].endswith('.exe'):
422+
sys.argv[0] = sys.argv[0][:-4]
425423
sys.exit(%(func)s())
426424
"""
427425

0 commit comments

Comments
 (0)