summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-05-30 21:18:59 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-05-31 03:04:45 +0200
commitf2d6edd8616b87d8785b73c7d5bc75321fd4de35 (patch)
tree7a2313f3229c1df17c8be7e7438de594a9f41ad9
parent4886cde781b84f036aebf7021931725665d115b1 (diff)
downloadNim-f2d6edd8616b87d8785b73c7d5bc75321fd4de35.tar.gz
fixes #786
-rw-r--r--compiler/commands.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index dc04993a7..e2274f2ad 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -269,6 +269,8 @@ proc processPath(path: string, info: TLineInfo,
       "config", info.toFullPath().splitFile().dir,
       "projectname", options.gProjectName,
       "projectpath", options.gProjectPath])
+    if '~' in result:
+      result = result.replace("~", os.getHomeDir())
   except ValueError:
     localError(info, "invalid path: " & p)
     result = p