From 4b64f09aaa6be6448a74b5a70a91da0a2db61516 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Wed, 10 Mar 2021 20:28:08 +1100 Subject: [PATCH] Fix #1370. Bug where loading pset templates makes it unable to install on Windows. --- src/ifcopenshell-python/ifcopenshell/util/pset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/pset.py b/src/ifcopenshell-python/ifcopenshell/util/pset.py index 5b523bb288..d05bea32eb 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/pset.py +++ b/src/ifcopenshell-python/ifcopenshell/util/pset.py @@ -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