Skip to content

Commit

Permalink
fixes a finish.exe regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Jul 6, 2019
1 parent d2684cd commit 6ce6bce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/finish.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6ce6bce

Please sign in to comment.