fixes a finish.exe regression
This commit is contained in:
parent
d2684cdfd2
commit
6ce6bce12e
1 changed files with 2 additions and 1 deletions
|
|
@ -203,7 +203,8 @@ when defined(windows):
|
||||||
proc main() =
|
proc main() =
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
let nimDesiredPath = expandFilename(getCurrentDir() / "bin")
|
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",
|
let p = tryGetUnicodeValue(r"Environment", "Path",
|
||||||
HKEY_CURRENT_USER) & ";" & tryGetUnicodeValue(
|
HKEY_CURRENT_USER) & ";" & tryGetUnicodeValue(
|
||||||
r"System\CurrentControlSet\Control\Session Manager\Environment", "Path",
|
r"System\CurrentControlSet\Control\Session Manager\Environment", "Path",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue