aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Yakimowich-Payne <jyapayne@gmail.com>2018-06-24 08:21:50 +0900
committerJoey Yakimowich-Payne <jyapayne@gmail.com>2018-06-24 08:21:50 +0900
commit4a83f6d5a1177396cd9f0287bc3f99e9ca0a7e87 (patch)
tree8b08ead2a1d42540b5cad5a8ed99d407b3af948d
parent2f2b26d269ba690ffe90708d1cb16f415cc673cb (diff)
downloadnimgen-4a83f6d5a1177396cd9f0287bc3f99e9ca0a7e87.tar.gz
nimgen-4a83f6d5a1177396cd9f0287bc3f99e9ca0a7e87.zip
Fix issue if cfg file is local gProject dir will be an empty string
-rw-r--r--nimgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/nimgen.nim b/nimgen.nim
index 14ece01..376e0eb 100644
--- a/nimgen.nim
+++ b/nimgen.nim
@@ -651,7 +651,7 @@ proc runCfg(cfg: string) =
echo "Config doesn't exist: " & cfg
quit(1)
- gProjectDir = parentDir(cfg)
+ gProjectDir = parentDir(cfg.expandFilename())
gConfig = loadConfig(cfg)