diff --git a/nimgen.nim b/nimgen.nim index 14e6692..750f085 100644 --- a/nimgen.nim +++ b/nimgen.nim @@ -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)