aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Yakimowich-Payne <jyapayne@gmail.com>2018-07-18 12:25:13 +0900
committerJoey Yakimowich-Payne <jyapayne@gmail.com>2018-07-18 12:25:13 +0900
commitf3c01e53f985a5f479ee4c58c492cc88e6d7af98 (patch)
tree18023818645da8caa49db52f638e6f1c61132531
parent6343567a9182dccac9edb61c636bd5ddf2732cfe (diff)
downloadnimgen-f3c01e53f985a5f479ee4c58c492cc88e6d7af98.tar.gz
nimgen-f3c01e53f985a5f479ee4c58c492cc88e6d7af98.zip
Fix a few more issues with windows paths
-rw-r--r--src/nimgen/runcfg.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nimgen/runcfg.nim b/src/nimgen/runcfg.nim
index 7255c52..03c0013 100644
--- a/src/nimgen/runcfg.nim
+++ b/src/nimgen/runcfg.nim
@@ -161,13 +161,13 @@ proc runCfg*(cfg: string) =
echo "Config doesn't exist: " & cfg
quit(1)
- gProjectDir = parentDir(cfg.expandFilename())
+ gProjectDir = parentDir(cfg.expandFilename()).sanitizePath
gConfig = loadConfig(cfg)
if gConfig.hasKey("n.global"):
if gConfig["n.global"].hasKey("output"):
- gOutput = gConfig["n.global"]["output"]
+ gOutput = gConfig["n.global"]["output"].sanitizePath
if dirExists(gOutput):
if "-f" in commandLineParams():
try:
@@ -207,11 +207,11 @@ proc runCfg*(cfg: string) =
if gConfig.hasKey("n.include"):
for inc in gConfig["n.include"].keys():
- gIncludes.add(inc.addEnv())
+ gIncludes.add(inc.addEnv().sanitizePath)
if gConfig.hasKey("n.exclude"):
for excl in gConfig["n.exclude"].keys():
- gExcludes.add(excl.addEnv())
+ gExcludes.add(excl.addEnv().sanitizePath)
if gConfig.hasKey("n.prepare"):
for prep in gConfig["n.prepare"].keys():