Switch to absolute paths for module loading

This commit is contained in:
Dion Moult
2019-12-11 18:44:46 +11:00
parent 2eeb507b78
commit 25dfa32b7e
4 changed files with 4 additions and 10 deletions
@@ -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
+1 -1
View File
@@ -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