attempt to make nimsuggest work with choosenim

This commit is contained in:
Andreas Rumpf 2017-05-11 17:00:50 +02:00
commit 1a29069ece

View file

@ -595,6 +595,8 @@ proc handleCmdLine(cache: IdentCache; config: ConfigRef) =
raise newException(IOError,
"Cannot find Nim standard library: Nim compiler not in PATH")
gPrefixDir = binaryPath.splitPath().head.parentDir()
if not dirExists(gPrefixDir / "lib"): gPrefixDir = ""
#msgs.writelnHook = proc (line: string) = log(line)
myLog("START " & gProjectFull)