diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-05-30 21:18:59 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-05-31 03:04:45 +0200 |
commit | f2d6edd8616b87d8785b73c7d5bc75321fd4de35 (patch) | |
tree | 7a2313f3229c1df17c8be7e7438de594a9f41ad9 | |
parent | 4886cde781b84f036aebf7021931725665d115b1 (diff) | |
download | Nim-f2d6edd8616b87d8785b73c7d5bc75321fd4de35.tar.gz |
fixes #786
-rw-r--r-- | compiler/commands.nim | 2 |
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 |