diff --git a/src/ifcblenderexport/blenderbim/cut_ifc.py b/src/ifcblenderexport/blenderbim/cut_ifc.py index c4ad1f47a6..208158d066 100644 --- a/src/ifcblenderexport/blenderbim/cut_ifc.py +++ b/src/ifcblenderexport/blenderbim/cut_ifc.py @@ -8,11 +8,6 @@ from pathlib import Path from mathutils import Vector import xml.etree.ElementTree as ET -# This hack is required to get the svgwrite dependency to load -# TODO: decouple cutter into its own binary -cwd = os.path.dirname(os.path.realpath(__file__)) + os.path.sep -sys.path.append(cwd) - import svgwrite import OCC.gp import OCC.Geom diff --git a/src/ifcblenderexport/blenderbim/export_ifc.py b/src/ifcblenderexport/blenderbim/export_ifc.py index f4a1b74f11..b49d6836a5 100644 --- a/src/ifcblenderexport/blenderbim/export_ifc.py +++ b/src/ifcblenderexport/blenderbim/export_ifc.py @@ -5,8 +5,7 @@ import time from pathlib import Path from mathutils import Vector, Matrix from .helper import SIUnitHelper -from . import ifcopenshell - +import ifcopenshell class ArrayModifier: count: int diff --git a/src/ifcblenderexport/blenderbim/import_ifc.py b/src/ifcblenderexport/blenderbim/import_ifc.py index 7dd1277076..fc7ad9e02c 100644 --- a/src/ifcblenderexport/blenderbim/import_ifc.py +++ b/src/ifcblenderexport/blenderbim/import_ifc.py @@ -1,5 +1,5 @@ -from . import ifcopenshell -from .ifcopenshell import geom +import ifcopenshell +import ifcopenshell.geom import bpy import os import json diff --git a/src/ifcblenderexport/blenderbim/operator.py b/src/ifcblenderexport/blenderbim/operator.py index ea56e93ebb..c32b9ea491 100644 --- a/src/ifcblenderexport/blenderbim/operator.py +++ b/src/ifcblenderexport/blenderbim/operator.py @@ -3,7 +3,7 @@ import bpy import time import json import logging -from . import ifcopenshell +import ifcopenshell from . import export_ifc from . import import_ifc from . import cut_ifc