mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-08 22:13:29 +00:00
fixes #786
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user