summary refs log tree commit diff stats
path: root/compiler/nimrod.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2011-12-09 04:40:59 +0200
committerZahary Karadjov <zahary@gmail.com>2011-12-09 04:40:59 +0200
commite4e74034c256f2b35c0b1650044e1598a0ee3697 (patch)
treecdcc0201d5bf043d0fb34be5437516ee1a6f83db /compiler/nimrod.nim
parente13a610ad42ef4d5d0222a2a942682d35e405dc7 (diff)
downloadNim-e4e74034c256f2b35c0b1650044e1598a0ee3697.tar.gz
path canonicalization and proper project relative paths
Diffstat (limited to 'compiler/nimrod.nim')
-rwxr-xr-xcompiler/nimrod.nim4
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