summary refs log tree commit diff stats
path: root/nim/nimrod.pas
diff options
context:
space:
mode:
Diffstat (limited to 'nim/nimrod.pas')
-rwxr-xr-xnim/nimrod.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/nim/nimrod.pas b/nim/nimrod.pas
index b3247bff0..8d7db04b2 100755
--- a/nim/nimrod.pas
+++ b/nim/nimrod.pas
@@ -84,7 +84,7 @@ begin
     command := '';
     filename := '';
     ProcessCmdLine(passCmd1, command, filename);
-    if filename <> '' then options.projectPath := extractDir(filename);
+    if filename <> '' then options.projectPath := splitFile(filename).dir;
     nimconf.LoadConfig(filename); // load the right config file
     // now process command line arguments again, because some options in the
     // command line can overwite the config file's settings