From f2d6edd8616b87d8785b73c7d5bc75321fd4de35 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 30 May 2016 21:18:59 +0200 Subject: fixes #786 --- compiler/commands.nim | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit 1.4.1-2-gfad0