diff options
author | Zahary Karadjov <zahary@gmail.com> | 2011-12-09 04:40:59 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2011-12-09 04:40:59 +0200 |
commit | e4e74034c256f2b35c0b1650044e1598a0ee3697 (patch) | |
tree | cdcc0201d5bf043d0fb34be5437516ee1a6f83db /compiler/nimrod.nim | |
parent | e13a610ad42ef4d5d0222a2a942682d35e405dc7 (diff) | |
download | Nim-e4e74034c256f2b35c0b1650044e1598a0ee3697.tar.gz |
path canonicalization and proper project relative paths
Diffstat (limited to 'compiler/nimrod.nim')
-rwxr-xr-x | compiler/nimrod.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/nimrod.nim b/compiler/nimrod.nim index 6a9ae690e..24dbc0617 100755 --- a/compiler/nimrod.nim +++ b/compiler/nimrod.nim @@ -70,14 +70,14 @@ proc HandleCmdLine() = ProcessCmdLine(passCmd1) if gProjectName != "": try: - gProjectFull = expandFilename(gProjectName) + gProjectFull = canonicalizePath(gProjectName) except EOS: gProjectFull = gProjectName var p = splitFile(gProjectFull) gProjectPath = p.dir gProjectName = p.name else: - gProjectPath = getCurrentDir() + gProjectPath = getCurrentDir() LoadConfigs(DefaultConfig) # load all config files # now process command line arguments again, because some options in the # command line can overwite the config file's settings |