Fixed auto-installer for Windows OS (bug with %PATH% customisations)

This commit is contained in:
Ivan Kravets committed 2014-06-21 23:10:18 +03:00
1 parent 75dcb0b607
commit 013f29a99f
4 files changed
+11 -3

No files matched your search

+2
View File
@@ -25,6 +25,8 @@ def fix_winpython_pathenv():
# took these lines from the native "win_add2path.py"
pythonpath = os.path.dirname(CURINTERPRETER_PATH)
scripts = os.path.join(pythonpath, "Scripts")
if not os.path.isdir(scripts):
os.makedirs(scripts)
with winreg.CreateKey(winreg.HKEY_CURRENT_USER, u"Environment") as key:
try: