mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Switch to absolute paths for module loading
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from . import ifcopenshell
|
||||
from .ifcopenshell import geom
|
||||
import ifcopenshell
|
||||
import ifcopenshell.geom
|
||||
import bpy
|
||||
import os
|
||||
import json
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user