From 1a29069ececd4514195a58e1fe68385fa1240d46 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 11 May 2017 17:00:50 +0200 Subject: [PATCH] attempt to make nimsuggest work with choosenim --- nimsuggest/nimsuggest.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nimsuggest/nimsuggest.nim b/nimsuggest/nimsuggest.nim index c1adb87a1..93a418dd7 100644 --- a/nimsuggest/nimsuggest.nim +++ b/nimsuggest/nimsuggest.nim @@ -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)