summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-07-06 22:48:22 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-07-06 22:48:22 +0200
commit6ce6bce12ecef07595f04f76ab5c33e393535d8b (patch)
treeecdaa2d6d546d1d045ffdd21e8414f370a79490a /tools
parentd2684cdfd2d7db18bf9ea3e2efcb8e80b0fc9131 (diff)
downloadNim-6ce6bce12ecef07595f04f76ab5c33e393535d8b.tar.gz
fixes a finish.exe regression
Diffstat (limited to 'tools')
-rw-r--r--tools/finish.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/finish.nim b/tools/finish.nim
index 815b99a12..f7238928a 100644
--- a/tools/finish.nim
+++ b/tools/finish.nim
@@ -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",