disable the undocumented 'import ' feature; allow import std / strutils; fixes #2819; refs #6700

This commit is contained in:
Andreas Rumpf 2018-02-12 16:36:19 +01:00
commit cddc389784
3 changed files with 119 additions and 96 deletions

View file

@ -274,9 +274,10 @@ proc testCompileOption*(switch: string, info: TLineInfo): bool =
proc processPath(path: string, info: TLineInfo,
notRelativeToProj = false): string =
let p = if notRelativeToProj or os.isAbsolute(path) or
'$' in path:
let p = if os.isAbsolute(path) or '$' in path:
path
elif notRelativeToProj:
getCurrentDir() / path
else:
options.gProjectPath / path
try: