mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-07 12:56:26 +00:00
Tool module: make all "from" imports relative
This commit is contained in:
@@ -16,48 +16,48 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
|
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from blenderbim.tool.aggregate import Aggregate
|
from .aggregate import Aggregate
|
||||||
from blenderbim.tool.blender import Blender
|
from .blender import Blender
|
||||||
from blenderbim.tool.boundary import Boundary
|
from .boundary import Boundary
|
||||||
from blenderbim.tool.brick import Brick
|
from .brick import Brick
|
||||||
from blenderbim.tool.bsdd import Bsdd
|
from .bsdd import Bsdd
|
||||||
from blenderbim.tool.cad import Cad
|
from .cad import Cad
|
||||||
from blenderbim.tool.clash import Clash
|
from .clash import Clash
|
||||||
from blenderbim.tool.collector import Collector
|
from .collector import Collector
|
||||||
from blenderbim.tool.context import Context
|
from .context import Context
|
||||||
from blenderbim.tool.debug import Debug
|
from .debug import Debug
|
||||||
from blenderbim.tool.demo import Demo
|
from .demo import Demo
|
||||||
from blenderbim.tool.document import Document
|
from .document import Document
|
||||||
from blenderbim.tool.drawing import Drawing
|
from .drawing import Drawing
|
||||||
from blenderbim.tool.geometry import Geometry
|
from .geometry import Geometry
|
||||||
from blenderbim.tool.georeference import Georeference
|
from .georeference import Georeference
|
||||||
from blenderbim.tool.ifc import Ifc
|
from .ifc import Ifc
|
||||||
from blenderbim.tool.ifcgit import IfcGit
|
from .ifcgit import IfcGit
|
||||||
from blenderbim.tool.ifcgit import IfcGitRepo
|
from .ifcgit import IfcGitRepo
|
||||||
from blenderbim.tool.library import Library
|
from .library import Library
|
||||||
from blenderbim.tool.loader import Loader
|
from .loader import Loader
|
||||||
from blenderbim.tool.material import Material
|
from .material import Material
|
||||||
from blenderbim.tool.misc import Misc
|
from .misc import Misc
|
||||||
from blenderbim.tool.model import Model
|
from .model import Model
|
||||||
from blenderbim.tool.nest import Nest
|
from .nest import Nest
|
||||||
from blenderbim.tool.owner import Owner
|
from .owner import Owner
|
||||||
from blenderbim.tool.patch import Patch
|
from .patch import Patch
|
||||||
from blenderbim.tool.project import Project
|
from .project import Project
|
||||||
from blenderbim.tool.profile import Profile
|
from .profile import Profile
|
||||||
from blenderbim.tool.pset import Pset
|
from .pset import Pset
|
||||||
from blenderbim.tool.qto import Qto
|
from .qto import Qto
|
||||||
from blenderbim.tool.resource import Resource
|
from .resource import Resource
|
||||||
from blenderbim.tool.root import Root
|
from .root import Root
|
||||||
from blenderbim.tool.sequence import Sequence
|
from .sequence import Sequence
|
||||||
from blenderbim.tool.spatial import Spatial
|
from .spatial import Spatial
|
||||||
from blenderbim.tool.covering import Covering
|
from .covering import Covering
|
||||||
from blenderbim.tool.structural import Structural
|
from .structural import Structural
|
||||||
from blenderbim.tool.style import Style
|
from .style import Style
|
||||||
from blenderbim.tool.surveyor import Surveyor
|
from .surveyor import Surveyor
|
||||||
from blenderbim.tool.system import System
|
from .system import System
|
||||||
from blenderbim.tool.tester import Tester
|
from .tester import Tester
|
||||||
from blenderbim.tool.type import Type
|
from .type import Type
|
||||||
from blenderbim.tool.unit import Unit
|
from .unit import Unit
|
||||||
from blenderbim.tool.search import Search
|
from .search import Search
|
||||||
from blenderbim.tool.cost import Cost
|
from .cost import Cost
|
||||||
from blenderbim.tool.web import Web
|
from .web import Web
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import addon_utils
|
|||||||
import types
|
import types
|
||||||
from mathutils import Vector
|
from mathutils import Vector
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from blenderbim.bim.ifc import IFC_CONNECTED_TYPE
|
from ..bim.ifc import IFC_CONNECTED_TYPE
|
||||||
from typing import Any, Optional, Union, Literal, Iterable, Callable
|
from typing import Any, Optional, Union, Literal, Iterable, Callable
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import bpy
|
|||||||
import ifcopenshell.express
|
import ifcopenshell.express
|
||||||
import blenderbim.core.tool
|
import blenderbim.core.tool
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
from blenderbim.bim.ifc import IfcStore
|
from ..bim.ifc import IfcStore
|
||||||
|
|
||||||
|
|
||||||
class Debug(blenderbim.core.tool.Debug):
|
class Debug(blenderbim.core.tool.Debug):
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import bpy
|
|||||||
import ifcopenshell.util.system
|
import ifcopenshell.util.system
|
||||||
import blenderbim.core.tool
|
import blenderbim.core.tool
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
from blenderbim.bim import import_ifc
|
from ..bim import import_ifc
|
||||||
|
|
||||||
|
|
||||||
class Document(blenderbim.core.tool.Document):
|
class Document(blenderbim.core.tool.Document):
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ import blenderbim.bim.import_ifc
|
|||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from math import radians, pi
|
from math import radians, pi
|
||||||
from mathutils import Vector, Matrix
|
from mathutils import Vector, Matrix
|
||||||
from blenderbim.bim.ifc import IfcStore
|
from ..bim.ifc import IfcStore
|
||||||
from typing import Union, Iterable, Optional, Literal
|
from typing import Union, Iterable, Optional, Literal
|
||||||
from typing import Iterator
|
from typing import Iterator
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import ifcopenshell.util.element
|
|||||||
import blenderbim.core.tool
|
import blenderbim.core.tool
|
||||||
import blenderbim.bim.handler
|
import blenderbim.bim.handler
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
from blenderbim.bim.ifc import IfcStore, IFC_CONNECTED_TYPE
|
from ..bim.ifc import IfcStore, IFC_CONNECTED_TYPE
|
||||||
from typing import Optional, Union, Any, final
|
from typing import Optional, Union, Any, final
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ import os
|
|||||||
import re
|
import re
|
||||||
import bpy
|
import bpy
|
||||||
import logging
|
import logging
|
||||||
from blenderbim.bim import import_ifc
|
from ..bim import import_ifc
|
||||||
from blenderbim.bim.ifc import IfcStore
|
from ..bim.ifc import IfcStore
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
|
|
||||||
# allows git import even if git executable isn't found
|
# allows git import even if git executable isn't found
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import blenderbim.core.tool
|
|||||||
import blenderbim.core.root
|
import blenderbim.core.root
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
from mathutils import Vector, Matrix
|
from mathutils import Vector, Matrix
|
||||||
from blenderbim.bim.ifc import IfcStore
|
from ..bim.ifc import IfcStore
|
||||||
|
|
||||||
|
|
||||||
class Misc(blenderbim.core.tool.Misc):
|
class Misc(blenderbim.core.tool.Misc):
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ from math import atan, degrees
|
|||||||
from mathutils import Matrix, Vector
|
from mathutils import Matrix, Vector
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from blenderbim.bim import import_ifc
|
from ..bim import import_ifc
|
||||||
from blenderbim.bim.module.geometry.helper import Helper
|
from ..bim.module.geometry.helper import Helper
|
||||||
from blenderbim.bim.module.model.data import AuthoringData, RailingData, RoofData, WindowData, DoorData
|
from ..bim.module.model.data import AuthoringData, RailingData, RoofData, WindowData, DoorData
|
||||||
from blenderbim.bim.module.model.opening import FilledOpeningGenerator
|
from ..bim.module.model.opening import FilledOpeningGenerator
|
||||||
from ifcopenshell.util.shape_builder import V, ShapeBuilder
|
from ifcopenshell.util.shape_builder import V, ShapeBuilder
|
||||||
from typing import Optional, Union, TypeVar, Any, Iterable, Literal
|
from typing import Optional, Union, TypeVar, Any, Iterable, Literal
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import ifcopenshell.util.representation
|
|||||||
import blenderbim.core.tool
|
import blenderbim.core.tool
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
import PIL.ImageDraw
|
import PIL.ImageDraw
|
||||||
from blenderbim.bim.module.model.decorator import ProfileDecorator
|
from ..bim.module.model.decorator import ProfileDecorator
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import blenderbim.core.unit
|
|||||||
import blenderbim.core.owner
|
import blenderbim.core.owner
|
||||||
import blenderbim.bim.schema
|
import blenderbim.bim.schema
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
from blenderbim.bim.ifc import IfcStore
|
from ..bim.ifc import IfcStore
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import lark
|
|||||||
import blenderbim.core.tool
|
import blenderbim.core.tool
|
||||||
import ifcopenshell.guid
|
import ifcopenshell.guid
|
||||||
import ifcopenshell.util.selector
|
import ifcopenshell.util.selector
|
||||||
from blenderbim.bim.prop import BIMFacet
|
from ..bim.prop import BIMFacet
|
||||||
from typing import Union, Literal
|
from typing import Union, Literal
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import blenderbim.bim.helper
|
|||||||
import blenderbim.core.tool
|
import blenderbim.core.tool
|
||||||
import blenderbim.core.structural
|
import blenderbim.core.structural
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
from blenderbim.bim.ifc import IfcStore
|
from ..bim.ifc import IfcStore
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,12 +24,12 @@ import blenderbim.core.geometry
|
|||||||
import blenderbim.core.root
|
import blenderbim.core.root
|
||||||
import blenderbim.core.tool
|
import blenderbim.core.tool
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
from blenderbim.bim import import_ifc
|
from ..bim import import_ifc
|
||||||
import re
|
import re
|
||||||
from math import pi, cos, sin
|
from math import pi, cos, sin
|
||||||
from mathutils import Matrix, Vector
|
from mathutils import Matrix, Vector
|
||||||
from blenderbim.bim.module.system.data import ObjectSystemData, SystemDecorationData
|
from ..bim.module.system.data import ObjectSystemData, SystemDecorationData
|
||||||
from blenderbim.bim.module.drawing.decoration import profile_consequential
|
from ..bim.module.drawing.decoration import profile_consequential
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
|
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
from blenderbim.bim.module.web.data import WebData
|
from ..bim.module.web.data import WebData
|
||||||
import blenderbim.core.tool
|
import blenderbim.core.tool
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
import ifcopenshell.api.sequence
|
import ifcopenshell.api.sequence
|
||||||
|
|||||||
Reference in New Issue
Block a user