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 153591397e

View file

@ -726,7 +726,7 @@ proc runCfg(cfg: string) =
if not fileExists(cfg):
raise newException(Exception, "Config doesn't exist: " & cfg)
gProjectDir = parentDir(cfg)
gProjectDir = parentDir(cfg.expandFilename())
gConfig = loadConfig(cfg)