aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Yakimowich-Payne <jyapayne@gmail.com>2018-07-17 18:11:39 +0900
committerJoey Yakimowich-Payne <jyapayne@gmail.com>2018-07-17 18:11:39 +0900
commit5e3c0999e0f969f7fb18fa14b8587b177e52666e (patch)
tree0a66cb1eb30ada2bbaeb64b783a74052926fbed1
parentaad005e0b123fd2ba08df058ba6a998cd68eea08 (diff)
downloadnimgen-5e3c0999e0f969f7fb18fa14b8587b177e52666e.tar.gz
nimgen-5e3c0999e0f969f7fb18fa14b8587b177e52666e.zip
Fix windows not processing headers
-rw-r--r--src/nimgen/c2nim.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nimgen/c2nim.nim b/src/nimgen/c2nim.nim
index f171e8d..fe257f2 100644
--- a/src/nimgen/c2nim.nim
+++ b/src/nimgen/c2nim.nim
@@ -6,7 +6,7 @@ template relativePath(path: untyped): untyped =
path.multiReplace([(gOutput, ""), ("\\", "/"), ("//", "/")])
proc c2nim*(fl, outfile: string, c2nimConfig: c2nimConfigObj) =
- var file = search(fl)
+ var file = search(fl).sanitizePath
if file.len() == 0:
return