fixes #394
This commit is contained in:
parent
5975001201
commit
b0b0b8fcfb
1 changed files with 5 additions and 2 deletions
|
|
@ -197,8 +197,11 @@ proc testCompileOption*(switch: string, info: TLineInfo): bool =
|
||||||
else: InvalidCmdLineOption(passCmd1, switch, info)
|
else: InvalidCmdLineOption(passCmd1, switch, info)
|
||||||
|
|
||||||
proc processPath(path: string, notRelativeToProj = false): string =
|
proc processPath(path: string, notRelativeToProj = false): string =
|
||||||
let p = if notRelativeToProj or os.isAbsolute(path) or '$' in path: path
|
let p = if notRelativeToProj or os.isAbsolute(path) or
|
||||||
else: options.gProjectPath / path
|
'$' in path or path[0] == '.':
|
||||||
|
path
|
||||||
|
else:
|
||||||
|
options.gProjectPath / path
|
||||||
result = UnixToNativePath(p % ["nimrod", getPrefixDir(), "lib", libpath,
|
result = UnixToNativePath(p % ["nimrod", getPrefixDir(), "lib", libpath,
|
||||||
"home", removeTrailingDirSep(os.getHomeDir()),
|
"home", removeTrailingDirSep(os.getHomeDir()),
|
||||||
"projectname", options.gProjectName,
|
"projectname", options.gProjectName,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue