Fix #1370. Bug where loading pset templates makes it unable to install on Windows.

This commit is contained in:
Dion Moult
2021-03-10 20:28:08 +11:00
parent 4afcca8550
commit 4b64f09aaa
@@ -16,7 +16,7 @@ class PsetQto:
self.schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(schema)
if not templates:
folder_path = pathlib.Path(__file__).parent.absolute()
path = folder_path.joinpath("schema", self.templates_path[schema])
path = str(folder_path.joinpath("schema", self.templates_path[schema]))
templates = [ifcopenshell.open(path)]
self.templates = templates