fixes a finish.exe regression

This commit is contained in:
Andreas Rumpf
2019-07-06 22:48:22 +02:00
parent d2684cdfd2
commit 6ce6bce12e

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",