mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Fix #1370. Bug where loading pset templates makes it unable to install on Windows.
This commit is contained in:
@@ -16,7 +16,7 @@ class PsetQto:
|
|||||||
self.schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(schema)
|
self.schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(schema)
|
||||||
if not templates:
|
if not templates:
|
||||||
folder_path = pathlib.Path(__file__).parent.absolute()
|
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)]
|
templates = [ifcopenshell.open(path)]
|
||||||
self.templates = templates
|
self.templates = templates
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user