diff options
-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 |