mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
Make all "import as foo" imports relative
This commit is contained in:
@@ -25,7 +25,7 @@ import ifcopenshell.util.representation
|
||||
import ifcopenshell.api.owner.settings
|
||||
import blenderbim.bim
|
||||
from .. import tool
|
||||
import blenderbim.core.owner as core_owner
|
||||
from ..core import owner as core_owner
|
||||
from bpy.app.handlers import persistent
|
||||
from .ifc import IfcStore
|
||||
from .module.owner.prop import get_user_person, get_user_organisation
|
||||
|
||||
@@ -20,7 +20,7 @@ import bpy
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util.element
|
||||
from .... import tool
|
||||
import blenderbim.core.aggregate as core
|
||||
from ....core import aggregate as core
|
||||
import blenderbim.core.spatial
|
||||
import blenderbim.bim.handler
|
||||
from ...ifc import IfcStore
|
||||
|
||||
@@ -24,7 +24,7 @@ import ifcopenshell.guid
|
||||
import blenderbim.bim.helper
|
||||
import blenderbim.bim.handler
|
||||
from .... import tool
|
||||
import blenderbim.core.attribute as core
|
||||
from ....core import attribute as core
|
||||
from ...ifc import IfcStore
|
||||
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ import tempfile
|
||||
import webbrowser
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util.unit
|
||||
import blenderbim.bim.module.bcf.prop as bcf_prop
|
||||
from . import prop as bcf_prop
|
||||
from . import bcfstore
|
||||
from pathlib import Path
|
||||
from ...ifc import IfcStore
|
||||
|
||||
@@ -20,7 +20,7 @@ import os
|
||||
import bpy
|
||||
import ifcopenshell.api
|
||||
from .... import tool
|
||||
import blenderbim.core.brick as core
|
||||
from ....core import brick as core
|
||||
import blenderbim.bim.handler
|
||||
from ...ifc import IfcStore
|
||||
from ....tool.brick import BrickStore
|
||||
|
||||
@@ -30,8 +30,8 @@ from bpy.props import (
|
||||
FloatVectorProperty,
|
||||
CollectionProperty,
|
||||
)
|
||||
import blenderbim.core.brick as core
|
||||
import blenderbim.tool.brick as tool
|
||||
from ....core import brick as core
|
||||
from ....tool import brick as tool
|
||||
from ....tool.brick import BrickStore
|
||||
|
||||
def update_active_brick_index(self, context):
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import os
|
||||
import bpy
|
||||
from .... import tool
|
||||
import blenderbim.bim.module.type.prop as type_prop
|
||||
from ..type import prop as type_prop
|
||||
import ifcopenshell.util.unit
|
||||
from bpy.types import WorkSpaceTool
|
||||
from ..model.data import AuthoringData, RailingData, RoofData
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import blenderbim.bim.helper
|
||||
from .... import tool
|
||||
import blenderbim.bim.module.classification.prop as classification_prop
|
||||
from . import prop as classification_prop
|
||||
from bpy.types import Panel, UIList
|
||||
from ...ifc import IfcStore
|
||||
from .data import (
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import bpy
|
||||
from .... import tool
|
||||
import blenderbim.core.context as core
|
||||
from ....core import context as core
|
||||
import blenderbim.bim.module.context.data
|
||||
import blenderbim.bim.handler
|
||||
from ...ifc import IfcStore
|
||||
|
||||
@@ -25,7 +25,7 @@ import blenderbim.bim.helper
|
||||
from .... import tool
|
||||
from bpy_extras.io_utils import ImportHelper
|
||||
from .... import tool
|
||||
import blenderbim.core.cost as core
|
||||
from ....core import cost as core
|
||||
|
||||
|
||||
class AddCostSchedule(bpy.types.Operator, tool.Ifc.Operator):
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import blenderbim.bim.helper
|
||||
import blenderbim.bim.module.cost.prop as CostProp
|
||||
from . import prop as CostProp
|
||||
from bpy.types import Panel, UIList
|
||||
from ...ifc import IfcStore
|
||||
from .data import CostSchedulesData
|
||||
|
||||
@@ -32,7 +32,7 @@ import ifcopenshell.util.element
|
||||
import ifcopenshell.util.placement
|
||||
import ifcopenshell.util.representation
|
||||
from .... import tool
|
||||
import blenderbim.core.debug as core
|
||||
from ....core import debug as core
|
||||
import blenderbim.bim.handler
|
||||
from ... import import_ifc
|
||||
from pathlib import Path
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
import bpy
|
||||
from .... import tool
|
||||
import blenderbim.core.demo as core
|
||||
from ....core import demo as core
|
||||
import blenderbim.bim.handler
|
||||
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import json
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.util.attribute
|
||||
from .... import tool
|
||||
import blenderbim.core.document as core
|
||||
from ....core import document as core
|
||||
from ...ifc import IfcStore
|
||||
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ import blenderbim.bim.helper
|
||||
import blenderbim.bim.handler
|
||||
from .... import tool
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.core.drawing as core
|
||||
from ....core import drawing as core
|
||||
from . import svgwriter
|
||||
from . import annotation
|
||||
from . import sheeter
|
||||
|
||||
@@ -22,7 +22,7 @@ import json
|
||||
import enum
|
||||
import ifcopenshell
|
||||
from .... import tool
|
||||
import blenderbim.core.drawing as core
|
||||
from ....core import drawing as core
|
||||
from . import annotation
|
||||
from . import decoration
|
||||
from ...prop import BIMFilterGroup
|
||||
|
||||
@@ -29,7 +29,7 @@ import ifcopenshell.util.representation
|
||||
import ifcopenshell.util.placement
|
||||
import ifcopenshell.api
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.core.geometry as core
|
||||
from ....core import geometry as core
|
||||
import blenderbim.core.aggregate
|
||||
import blenderbim.core.style
|
||||
import blenderbim.core.root
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import bpy
|
||||
|
||||
from .... import tool
|
||||
import blenderbim.core.georeference as core
|
||||
from ....core import georeference as core
|
||||
from .decorator import GeoreferenceDecorator
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
import re
|
||||
import bpy
|
||||
import blenderbim.core.ifcgit as core
|
||||
from ....core import ifcgit as core
|
||||
from .... import tool
|
||||
from .data import IfcGitData, refresh
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import bpy
|
||||
import ifcopenshell.api
|
||||
from .... import tool
|
||||
import blenderbim.core.library as core
|
||||
from ....core import library as core
|
||||
import blenderbim.bim.handler
|
||||
from ...ifc import IfcStore
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@ import ifcopenshell.util.representation
|
||||
import blenderbim.bim.helper
|
||||
from .... import tool
|
||||
import blenderbim.core.style
|
||||
import blenderbim.core.material as core
|
||||
import blenderbim.bim.module.model.profile as model_profile
|
||||
from ....core import material as core
|
||||
from ..model import profile as model_profile
|
||||
from .prop import purge as material_prop_purge
|
||||
from ...ifc import IfcStore
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ import numpy as np
|
||||
import ifcopenshell
|
||||
import blenderbim.bim.handler
|
||||
from .... import tool
|
||||
import blenderbim.core.misc as core
|
||||
import blenderbim.core.geometry as core_geometry
|
||||
from ....core import misc as core
|
||||
from ....core import geometry as core_geometry
|
||||
import blenderbim.core.root
|
||||
from ...ifc import IfcStore
|
||||
from mathutils import Vector, Matrix, Euler
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
from .... import tool
|
||||
import blenderbim.core.covering as core
|
||||
from ....core import covering as core
|
||||
|
||||
|
||||
class AddInstanceFlooringCoveringFromCursor(bpy.types.Operator, tool.Ifc.Operator):
|
||||
|
||||
@@ -28,7 +28,7 @@ import ifcopenshell.util.representation
|
||||
from ifcopenshell.util.shape_builder import V
|
||||
from .... import tool
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.core.geometry as core
|
||||
from ....core import geometry as core
|
||||
import blenderbim.core.root
|
||||
from .window import create_bm_window, create_bm_box
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
import bpy
|
||||
from .... import tool
|
||||
import blenderbim.core.spatial as core
|
||||
from ....core import spatial as core
|
||||
|
||||
|
||||
class GenerateSpace(bpy.types.Operator, tool.Ifc.Operator):
|
||||
|
||||
@@ -32,7 +32,7 @@ import blenderbim.bim.handler
|
||||
import blenderbim.core.type
|
||||
import blenderbim.core.root
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.core.model as core
|
||||
from ....core import model as core
|
||||
from .... import tool
|
||||
from ...ifc import IfcStore
|
||||
from math import pi, sin, cos, degrees
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import os
|
||||
import bpy
|
||||
from .... import tool
|
||||
import blenderbim.core.model as core
|
||||
from ....core import model as core
|
||||
from .wall import DumbWallJoiner
|
||||
from ...helper import prop_with_search
|
||||
from bpy.types import WorkSpaceTool
|
||||
|
||||
@@ -20,7 +20,7 @@ import bpy
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util.element
|
||||
from .... import tool
|
||||
import blenderbim.core.nest as core
|
||||
from ....core import nest as core
|
||||
import blenderbim.core.spatial
|
||||
import blenderbim.bim.handler
|
||||
from ...ifc import IfcStore
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import bpy
|
||||
from .... import tool
|
||||
import blenderbim.core.owner as core
|
||||
from ....core import owner as core
|
||||
import blenderbim.bim.handler
|
||||
from ...ifc import IfcStore
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import bpy
|
||||
import json
|
||||
import ifcopenshell
|
||||
from .... import tool
|
||||
import blenderbim.core.patch as core
|
||||
from ....core import patch as core
|
||||
import blenderbim.bim.handler
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ import bpy
|
||||
import ifcopenshell.api
|
||||
import blenderbim.bim.helper
|
||||
from .... import tool
|
||||
import blenderbim.bim.module.model.profile as model_profile
|
||||
import blenderbim.core.profile as core
|
||||
from ..model import profile as model_profile
|
||||
from ....core import profile as core
|
||||
from ..model.decorator import ProfileDecorator
|
||||
from .prop import generate_thumbnail_for_active_profile
|
||||
from .data import refresh
|
||||
|
||||
@@ -40,7 +40,7 @@ import ifcopenshell.util.unit
|
||||
import blenderbim.bim.handler
|
||||
import blenderbim.bim.schema
|
||||
from .... import tool
|
||||
import blenderbim.core.project as core
|
||||
from ....core import project as core
|
||||
import blenderbim.core.context
|
||||
import blenderbim.core.owner
|
||||
import blenderbim.core.spatial
|
||||
|
||||
@@ -26,7 +26,7 @@ import blenderbim.bim.schema
|
||||
import blenderbim.bim.helper
|
||||
import blenderbim.bim.handler
|
||||
from .... import tool
|
||||
import blenderbim.core.pset as core
|
||||
from ....core import pset as core
|
||||
import blenderbim.bim.module.pset.data
|
||||
from ...ifc import IfcStore
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import bpy
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
from .... import tool
|
||||
import blenderbim.core.qto as core
|
||||
from ....core import qto as core
|
||||
from ...ifc import IfcStore
|
||||
from . import helper
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import bpy
|
||||
from bpy_extras.io_utils import ImportHelper
|
||||
from .ui import draw_productivity_ui
|
||||
import blenderbim.core.resource as core
|
||||
from ....core import resource as core
|
||||
from .... import tool
|
||||
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import blenderbim.core.material
|
||||
import blenderbim.core.spatial
|
||||
import blenderbim.core.style
|
||||
import blenderbim.core.type
|
||||
import blenderbim.core.root as core
|
||||
from ....core import root as core
|
||||
from .... import tool
|
||||
from ...ifc import IfcStore
|
||||
from ...helper import get_enum_items
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import bpy
|
||||
import blenderbim.bim.module.root.prop as root_prop
|
||||
from . import prop as root_prop
|
||||
from bpy.types import Panel
|
||||
from ...ifc import IfcStore
|
||||
from ...helper import prop_with_search
|
||||
|
||||
@@ -25,7 +25,7 @@ import ifcopenshell.util.element
|
||||
import ifcopenshell.util.selector
|
||||
from .... import tool
|
||||
from ...ifc import IfcStore
|
||||
import blenderbim.core.search as core
|
||||
from ....core import search as core
|
||||
from itertools import cycle
|
||||
from bpy.types import PropertyGroup, Operator
|
||||
from bpy.props import (
|
||||
|
||||
@@ -22,7 +22,7 @@ import json
|
||||
import time
|
||||
import calendar
|
||||
import isodate
|
||||
import blenderbim.core.sequence as core
|
||||
from ....core import sequence as core
|
||||
from .... import tool
|
||||
from . import helper
|
||||
import ifcopenshell.util.sequence
|
||||
|
||||
@@ -22,7 +22,7 @@ import ifcopenshell.api
|
||||
import ifcopenshell.util.attribute
|
||||
from ifcopenshell.util.doc import get_predefined_type_doc
|
||||
from .... import tool
|
||||
import blenderbim.core.sequence as core
|
||||
from ....core import sequence as core
|
||||
from ...ifc import IfcStore
|
||||
from .data import SequenceData, AnimationColorSchemeData, refresh as refresh_sequence_data
|
||||
import blenderbim.bim.module.resource.data
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import bpy
|
||||
import ifcopenshell.util.element
|
||||
from .... import tool
|
||||
import blenderbim.core.spatial as core
|
||||
from ....core import spatial as core
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.core.aggregate
|
||||
import blenderbim.core.root
|
||||
|
||||
@@ -23,7 +23,7 @@ import ifcopenshell.api
|
||||
import ifcopenshell.util.attribute
|
||||
import blenderbim.bim.helper
|
||||
import blenderbim.bim.handler
|
||||
import blenderbim.core.structural as core
|
||||
from ....core import structural as core
|
||||
from .... import tool
|
||||
import blenderbim.core.context
|
||||
from math import degrees
|
||||
|
||||
@@ -21,7 +21,7 @@ import bpy
|
||||
import blenderbim.bim.helper
|
||||
import blenderbim.bim.handler
|
||||
from .... import tool
|
||||
import blenderbim.core.style as core
|
||||
from ....core import style as core
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.api.style
|
||||
import ifcopenshell.util.representation
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import bpy
|
||||
import ifcopenshell.api
|
||||
from .... import tool
|
||||
import blenderbim.core.system as core
|
||||
from ....core import system as core
|
||||
import blenderbim.bim.handler
|
||||
import blenderbim.bim.helper
|
||||
from ...ifc import IfcStore
|
||||
|
||||
@@ -26,7 +26,7 @@ import ifcopenshell.util.unit
|
||||
import ifcopenshell.api
|
||||
from .... import tool
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.core.type as core
|
||||
from ....core import type as core
|
||||
import blenderbim.core.root
|
||||
from ...ifc import IfcStore
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from .... import tool
|
||||
import blenderbim.bim.module.type.prop as type_prop
|
||||
from . import prop as type_prop
|
||||
from bpy.types import Panel
|
||||
from ...ifc import IfcStore
|
||||
from ...helper import prop_with_search
|
||||
|
||||
@@ -23,7 +23,7 @@ import ifcopenshell.util.unit
|
||||
import blenderbim.bim.helper
|
||||
import blenderbim.bim.handler
|
||||
from .... import tool
|
||||
import blenderbim.core.unit as core
|
||||
from ....core import unit as core
|
||||
from ...ifc import IfcStore
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import os
|
||||
import bpy
|
||||
import blenderbim.core.web as core
|
||||
from ....core import web as core
|
||||
from .... import tool
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user