summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-11-23 23:23:31 +0100
committerAraq <rumpf_a@web.de>2016-11-23 23:23:31 +0100
commit074f276c8a753bbb85788777b7c58a074f41329f (patch)
treed5078972eb1cbd23f7ce59b63e13bb31f02196d6 /tools
parent204838b3585d13ea88d3b8ac8e7f0fc19e55f3e9 (diff)
downloadNim-074f276c8a753bbb85788777b7c58a074f41329f.tar.gz
disallow recursive module dependencies
Diffstat (limited to 'tools')
-rw-r--r--tools/nimsuggest/nimsuggest.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/nimsuggest/nimsuggest.nim b/tools/nimsuggest/nimsuggest.nim
index 822ef7224..b5e7b282f 100644
--- a/tools/nimsuggest/nimsuggest.nim
+++ b/tools/nimsuggest/nimsuggest.nim
@@ -431,10 +431,10 @@ proc handleCmdLine(cache: IdentCache) =
       except OSError:
         gProjectFull = gProjectName
       var p = splitFile(gProjectFull)
-      gProjectPath = p.dir
+      gProjectPath = canonicalizePath p.dir
       gProjectName = p.name
     else:
-      gProjectPath = getCurrentDir()
+      gProjectPath = canonicalizePath getCurrentDir()
 
     # Find Nim's prefix dir.
     let binaryPath = findExe("nim")