mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 23:20:56 +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
|
from mathutils import Vector
|
||||||
import xml.etree.ElementTree as ET
|
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 svgwrite
|
||||||
import OCC.gp
|
import OCC.gp
|
||||||
import OCC.Geom
|
import OCC.Geom
|
||||||
|
|||||||
@@ -5,8 +5,7 @@ import time
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from mathutils import Vector, Matrix
|
from mathutils import Vector, Matrix
|
||||||
from .helper import SIUnitHelper
|
from .helper import SIUnitHelper
|
||||||
from . import ifcopenshell
|
import ifcopenshell
|
||||||
|
|
||||||
|
|
||||||
class ArrayModifier:
|
class ArrayModifier:
|
||||||
count: int
|
count: int
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
from . import ifcopenshell
|
import ifcopenshell
|
||||||
from .ifcopenshell import geom
|
import ifcopenshell.geom
|
||||||
import bpy
|
import bpy
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import bpy
|
|||||||
import time
|
import time
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
from . import ifcopenshell
|
import ifcopenshell
|
||||||
from . import export_ifc
|
from . import export_ifc
|
||||||
from . import import_ifc
|
from . import import_ifc
|
||||||
from . import cut_ifc
|
from . import cut_ifc
|
||||||
|
|||||||
Reference in New Issue
Block a user