Change project dir based on nimgen cfg file
This commit is contained in:
parent
71699332be
commit
2f2b26d269
1 changed files with 3 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ var
|
||||||
gDoneRecursive: seq[string] = @[]
|
gDoneRecursive: seq[string] = @[]
|
||||||
gDoneInline: seq[string] = @[]
|
gDoneInline: seq[string] = @[]
|
||||||
|
|
||||||
gProjectDir = getCurrentDir()
|
gProjectDir = ""
|
||||||
gConfig: Config
|
gConfig: Config
|
||||||
gFilter = ""
|
gFilter = ""
|
||||||
gQuotes = true
|
gQuotes = true
|
||||||
|
|
@ -651,6 +651,8 @@ proc runCfg(cfg: string) =
|
||||||
echo "Config doesn't exist: " & cfg
|
echo "Config doesn't exist: " & cfg
|
||||||
quit(1)
|
quit(1)
|
||||||
|
|
||||||
|
gProjectDir = parentDir(cfg)
|
||||||
|
|
||||||
gConfig = loadConfig(cfg)
|
gConfig = loadConfig(cfg)
|
||||||
|
|
||||||
if gConfig.hasKey("n.global"):
|
if gConfig.hasKey("n.global"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue