diff --git a/compiler/commands.nim b/compiler/commands.nim index dc04993a79..e2274f2ad2 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