From 08d959f66de0240331a66fdadb1da386af27e3b3 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Wed, 3 Feb 2021 14:45:52 +1100 Subject: [PATCH] Fix #1282. Bug where unable to install add-on in older Blender versions. --- src/ifcbimtester/bimtester/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcbimtester/bimtester/run.py b/src/ifcbimtester/bimtester/run.py index 8566e78148..6b2411b31f 100644 --- a/src/ifcbimtester/bimtester/run.py +++ b/src/ifcbimtester/bimtester/run.py @@ -3,7 +3,6 @@ import sys import shutil import tempfile import ifcopenshell -import ifcopenshell.express import behave.formatter.pretty # Needed for pyinstaller to package it from bimtester.ifc import IfcStore from behave.__main__ import main as behave_main @@ -15,6 +14,7 @@ class TestRunner: IfcStore.file = ifc if ifc else ifcopenshell.open(ifc_path) if schema: + import ifcopenshell.express schema = ifcopenshell.express.parse(path) ifcopenshell.register_schema(schema)