fixes a finish.exe regression

(cherry picked from commit 6ce6bce12e)
This commit is contained in:
Andreas Rumpf
2019-07-06 22:48:22 +02:00
committed by narimiran
parent c96e6682a0
commit df32d891a9

View File

@@ -203,7 +203,8 @@ when defined(windows):
proc main() =
when defined(windows):
let nimDesiredPath = expandFilename(getCurrentDir() / "bin")
let nimbleDesiredPath = expandFilename(getEnv("USERPROFILE") / ".nimble" / "bin")
let nimbleBin = getEnv("USERPROFILE") / ".nimble" / "bin"
let nimbleDesiredPath = try: expandFilename(nimbleBin) except: nimbleBin
let p = tryGetUnicodeValue(r"Environment", "Path",
HKEY_CURRENT_USER) & ";" & tryGetUnicodeValue(
r"System\CurrentControlSet\Control\Session Manager\Environment", "Path",