Skip to content

Commit 7b73225

Browse files
committed
Adds script to change Python path in exe launchers
1 parent de4446a commit 7b73225

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

change_python_launchers_exe_path.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import os
2+
import sys
3+
import win32api
4+
5+
from pip._vendor.distlib import scripts
6+
7+
specs = 'nova = novaclient.shell:main'
8+
9+
scripts_path = os.path.join(os.path.dirname(sys.executable), 'Scripts')
10+
m = scripts.ScriptMaker(None, scripts_path)
11+
m.executable = win32api.GetShortPathName(sys.executable)
12+
m.make(specs)
13+

0 commit comments

Comments
 (0)