Change project dir based on nimgen cfg file

This commit is contained in:
Joey Yakimowich-Payne 2018-06-24 07:50:47 +09:00
commit 2f2b26d269

View file

@ -4,7 +4,7 @@ var
gDoneRecursive: seq[string] = @[]
gDoneInline: seq[string] = @[]
gProjectDir = getCurrentDir()
gProjectDir = ""
gConfig: Config
gFilter = ""
gQuotes = true
@ -651,6 +651,8 @@ proc runCfg(cfg: string) =
echo "Config doesn't exist: " & cfg
quit(1)
gProjectDir = parentDir(cfg)
gConfig = loadConfig(cfg)
if gConfig.hasKey("n.global"):