From 267527f3fcea1b1a528e5a70ce7dd4c63a195f20 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 7 May 2024 21:26:48 +0500 Subject: [PATCH] fix issue after removing ifcopenshell.main in d76462ca4 --- src/ifcopenshell-python/ifcopenshell/template.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/template.py b/src/ifcopenshell-python/ifcopenshell/template.py index 7e506e3fd6..13942431d4 100644 --- a/src/ifcopenshell-python/ifcopenshell/template.py +++ b/src/ifcopenshell-python/ifcopenshell/template.py @@ -22,7 +22,7 @@ import uuid from .file import file from .guid import compress -from . import main +from .ifcopenshell_wrapper import version # A quick way to setup an 'empty' IFC file, taken from: # http://academy.ifcopenshell.org/creating-a-simple-wall-with-property-set-and-quantity-information/ @@ -58,8 +58,8 @@ END-ISO-10303-21; """ DEFAULTS = { - "application": lambda d: "IfcOpenShell-%s" % main.version, - "application_version": lambda d: main.version, + "application": lambda d: "IfcOpenShell-%s" % version(), + "application_version": lambda d: version(), "project_globalid": lambda d: compress(uuid.uuid4().hex), "schema_identifier": lambda d: "IFC4", "timestamp": lambda d: int(time.time()),