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",
o use layers' href='/akkartik/mu/commit/cpp/literate/tangle/boot.cc?h=main&id=515309164793b2e03c15954bf8a89f0f288a7f2c'>51530916 ^
51530916 ^
30ab0297 ^


51530916 ^

51530916 ^



51530916 ^

51530916 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40