Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Tie up some loose ends
Fixed the problems mentioned here: #1645
  • Loading branch information
XDcsy authored Feb 4, 2019
commit 80e887455dda08c938a773470636e19ddf632edf
4 changes: 2 additions & 2 deletions Tools/scripts/win_add2path.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ def modify():
except:
raise OSError("Failed to load PATH value")

userscripts = None
userscripts = None
if hasattr(site, "USER_SITE"):
if dtype == winreg.REG_EXPAND_SZ:
usersite = site.USER_SITE.replace(appdata, "%APPDATA%")
usersite = site.USER_SITE.replace(appdata, "%APPDATA%")
userpath = os.path.dirname(usersite)
userscripts = os.path.join(userpath, "Scripts")
elif dtype == winreg.REG_SZ:
Expand Down