diff --git a/pythran/backend.py b/pythran/backend.py index 18cfff920..b92465e34 100644 --- a/pythran/backend.py +++ b/pythran/backend.py @@ -1315,10 +1315,11 @@ def visit_Module(self, node): """ Build a compilation unit. """ # build all types header_deps = sorted(self.dependencies) - headers = [Include(os.path.join("pythonic", "include", - *map(cxxid, t)) + ".hpp") + headers = [Include('/'.join(["pythonic", "include"] + + [cxxid(x) for x in t]) + ".hpp") for t in header_deps] - headers += [Include(os.path.join("pythonic", *map(cxxid, t)) + ".hpp") + headers += [Include('/'.join(["pythonic"] + [cxxid(x) for x in t]) + + ".hpp") for t in header_deps] decls_n_defns = list(filter(None, (self.visit(stmt) for stmt in