mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Fix #1282. Bug where unable to install add-on in older Blender versions.
This commit is contained in:
@@ -3,7 +3,6 @@ import sys
|
|||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.express
|
|
||||||
import behave.formatter.pretty # Needed for pyinstaller to package it
|
import behave.formatter.pretty # Needed for pyinstaller to package it
|
||||||
from bimtester.ifc import IfcStore
|
from bimtester.ifc import IfcStore
|
||||||
from behave.__main__ import main as behave_main
|
from behave.__main__ import main as behave_main
|
||||||
@@ -15,6 +14,7 @@ class TestRunner:
|
|||||||
IfcStore.file = ifc if ifc else ifcopenshell.open(ifc_path)
|
IfcStore.file = ifc if ifc else ifcopenshell.open(ifc_path)
|
||||||
|
|
||||||
if schema:
|
if schema:
|
||||||
|
import ifcopenshell.express
|
||||||
schema = ifcopenshell.express.parse(path)
|
schema = ifcopenshell.express.parse(path)
|
||||||
ifcopenshell.register_schema(schema)
|
ifcopenshell.register_schema(schema)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user