Fix issue if cfg file is local gProject dir will be an empty string

This commit is contained in:
Joey Yakimowich-Payne 2018-06-24 08:21:50 +09:00
commit 4a83f6d5a1

View file

@ -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)