mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Tool module: make all "import as" imports relative
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
import bpy
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import ifcopenshell.util.element
|
||||
from typing import Union
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import os
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.util.element
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import blenderbim.bim
|
||||
import addon_utils
|
||||
import types
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import bpy
|
||||
import mathutils
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
from mathutils import Matrix, Vector
|
||||
from typing import Any, Sequence
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import ifcopenshell
|
||||
import ifcopenshell.guid
|
||||
import ifcopenshell.util.brick
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
from contextlib import contextmanager
|
||||
import datetime
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import bpy
|
||||
import json
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import bpy
|
||||
import json
|
||||
import ifcopenshell
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
from contextlib import contextmanager
|
||||
from mathutils import Vector
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import bpy
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import ifcopenshell.util.element
|
||||
from typing import Union
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import bpy
|
||||
import blenderbim.bim.helper
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import blenderbim.core.tool
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
import bpy
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import ifcopenshell.util.element
|
||||
import ifcopenshell.util.date
|
||||
import ifcopenshell.util.cost
|
||||
|
||||
@@ -24,7 +24,7 @@ import blenderbim.core.tool
|
||||
import blenderbim.core.root
|
||||
import blenderbim.core.spatial
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import json
|
||||
from math import pi
|
||||
from mathutils import Vector, Matrix
|
||||
|
||||
@@ -20,7 +20,7 @@ import os
|
||||
import bpy
|
||||
import ifcopenshell.express
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
from ..bim.ifc import IfcStore
|
||||
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
import bpy
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
|
||||
|
||||
# There is always one class in each tool file, which implements the interface
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import bpy
|
||||
import ifcopenshell.util.system
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
from ..bim import import_ifc
|
||||
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import subprocess
|
||||
import numpy as np
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.geom
|
||||
import ifcopenshell.util.representation
|
||||
|
||||
@@ -35,7 +35,7 @@ import blenderbim.core.style
|
||||
import blenderbim.core.spatial
|
||||
import blenderbim.core.system
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import blenderbim.bim.import_ifc
|
||||
from collections import defaultdict
|
||||
from math import radians, pi
|
||||
|
||||
@@ -22,7 +22,7 @@ import numpy as np
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api.georeference
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import blenderbim.bim.helper
|
||||
from math import radians, cos, sin
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import ifcopenshell.ifcopenshell_wrapper as ifcopenshell_wrapper
|
||||
import ifcopenshell.util.element
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.bim.handler
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
from ..bim.ifc import IfcStore, IFC_CONNECTED_TYPE
|
||||
from typing import Optional, Union, Any, final
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import bpy
|
||||
import logging
|
||||
from ..bim import import_ifc
|
||||
from ..bim.ifc import IfcStore
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
|
||||
# allows git import even if git executable isn't found
|
||||
os.environ["GIT_PYTHON_REFRESH"] = "quiet"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import bpy
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
|
||||
|
||||
class Library(blenderbim.core.tool.Library):
|
||||
|
||||
@@ -26,7 +26,7 @@ import ifcopenshell.util.element
|
||||
import ifcopenshell.util.shape
|
||||
import ifcopenshell.util.unit
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import blenderbim.bim.import_ifc
|
||||
import numpy as np
|
||||
import numpy.typing as npt
|
||||
|
||||
@@ -22,7 +22,7 @@ import ifcopenshell
|
||||
import ifcopenshell.api.material
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.core.material
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import blenderbim.bim.helper
|
||||
import ifcopenshell.util.unit
|
||||
import ifcopenshell.util.element
|
||||
|
||||
@@ -21,7 +21,7 @@ import bmesh
|
||||
import ifcopenshell
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.core.root
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
from mathutils import Vector, Matrix
|
||||
from ..bim.ifc import IfcStore
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@ import ifcopenshell.util.placement
|
||||
import ifcopenshell.util.representation
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
import blenderbim.core.geometry as geometry
|
||||
from .. import tool
|
||||
from ..core. import geometry
|
||||
from math import atan, degrees
|
||||
from mathutils import Matrix, Vector
|
||||
from copy import deepcopy
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import ifcopenshell.util.element
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import bpy
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import blenderbim.bim.helper
|
||||
import ifcopenshell
|
||||
from typing import Union, Any
|
||||
|
||||
@@ -23,7 +23,7 @@ import ifcopenshell.util.unit
|
||||
import ifcopenshell.util.placement
|
||||
import ifcopenshell.util.representation
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import PIL.ImageDraw
|
||||
from ..bim.module.model.decorator import ProfileDecorator
|
||||
from typing import Union
|
||||
|
||||
@@ -28,7 +28,7 @@ import blenderbim.core.root
|
||||
import blenderbim.core.unit
|
||||
import blenderbim.core.owner
|
||||
import blenderbim.bim.schema
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
from ..bim.ifc import IfcStore
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
@@ -20,7 +20,7 @@ import bpy
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util.element
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import blenderbim.bim.schema
|
||||
from typing import Union
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import bpy
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.bim.schema
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util.unit
|
||||
import ifcopenshell.util.element
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
|
||||
import bpy
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import blenderbim.bim.helper
|
||||
import blenderbim.bim.module.sequence.helper as helper
|
||||
from ..bim.module.sequence. import helper
|
||||
import json
|
||||
import time
|
||||
import isodate
|
||||
|
||||
@@ -28,7 +28,7 @@ import blenderbim.core.aggregate
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.core.material
|
||||
import blenderbim.core.style
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
from typing import Union, Optional, Any
|
||||
|
||||
|
||||
|
||||
@@ -31,9 +31,9 @@ import ifcopenshell.util.element
|
||||
import ifcopenshell.util.unit
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.core
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import blenderbim.bim.helper
|
||||
import blenderbim.bim.module.sequence.helper as helper
|
||||
from ..bim.module.sequence. import helper
|
||||
from dateutil import parser
|
||||
from datetime import datetime
|
||||
from typing import Optional, Any, Union
|
||||
|
||||
@@ -34,7 +34,7 @@ import blenderbim.core.tool
|
||||
import blenderbim.core.root
|
||||
import blenderbim.core.spatial
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import json
|
||||
from math import pi
|
||||
from mathutils import Vector, Matrix
|
||||
|
||||
@@ -22,7 +22,7 @@ import json
|
||||
import blenderbim.bim.helper
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.core.structural
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
from ..bim.ifc import IfcStore
|
||||
from pprint import pprint
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import ifcopenshell
|
||||
import ifcopenshell.util.element
|
||||
import ifcopenshell.util.representation
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import blenderbim.bim.helper
|
||||
from mathutils import Color
|
||||
from typing import Union, Any, Optional, Literal
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import bpy
|
||||
import ifcopenshell.api
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import numpy as np
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import blenderbim.bim.helper
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.core.root
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
from ..bim import import_ifc
|
||||
import re
|
||||
from math import pi, cos, sin
|
||||
|
||||
@@ -22,7 +22,7 @@ import ifcopenshell.util.element
|
||||
import ifcopenshell.util.representation
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.core.geometry
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import blenderbim.bim.helper
|
||||
from typing import Union
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import bpy
|
||||
import json
|
||||
import ifcopenshell
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
|
||||
|
||||
class Unit(blenderbim.core.tool.Unit):
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import bpy
|
||||
from ..bim.module.web.data import WebData
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.tool as tool
|
||||
from .. import tool
|
||||
import ifcopenshell.api.sequence
|
||||
import socket
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user