diff options
author | Araq <rumpf_a@web.de> | 2013-04-23 17:19:30 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-04-23 17:19:30 +0200 |
commit | b0b0b8fcfb0f7551b06008df997e2b9257e84c29 (patch) | |
tree | 876f9d5630d543dff4bce502b07680deba5a0cab /compiler/commands.nim | |
parent | 5975001201f5595bbaa05a0c9014ac9ca3d792ec (diff) | |
download | Nim-b0b0b8fcfb0f7551b06008df997e2b9257e84c29.tar.gz |
fixes #394
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 8b03dfec4..27da03bbe 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -197,8 +197,11 @@ proc testCompileOption*(switch: string, info: TLineInfo): bool = else: InvalidCmdLineOption(passCmd1, switch, info) proc processPath(path: string, notRelativeToProj = false): string = - let p = if notRelativeToProj or os.isAbsolute(path) or '$' in path: path - else: options.gProjectPath / path + let p = if notRelativeToProj or os.isAbsolute(path) or + '$' in path or path[0] == '.': + path + else: + options.gProjectPath / path result = UnixToNativePath(p % ["nimrod", getPrefixDir(), "lib", libpath, "home", removeTrailingDirSep(os.getHomeDir()), "projectname", options.gProjectName, |