Fix issue if cfg file is local gProject dir will be an empty string
This commit is contained in:
parent
14d8eca24b
commit
153591397e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue