Reorganise libs into its own folder thanks to Stephen Leger
@@ -13,19 +13,20 @@ bl_info = {
|
||||
import os
|
||||
import site
|
||||
|
||||
# process ifcopenshell.pth in /scripts/addons
|
||||
site.addsitedir(os.path.join(os.path.dirname(os.path.realpath(__file__)), "scripts", "addons"))
|
||||
|
||||
import bim as blenderbim
|
||||
import ifcopenshell
|
||||
# process *.pth in /libs/site/packages to setup globally importable modules
|
||||
# 3 levels deep required by occ static ../../ path
|
||||
cwd = os.path.dirname(os.path.realpath(__file__))
|
||||
site.addsitedir(os.path.join(cwd, "libs", "site", "packages"))
|
||||
|
||||
|
||||
def register():
|
||||
blenderbim.register()
|
||||
# main import
|
||||
from .bim import *
|
||||
|
||||
|
||||
def unregister():
|
||||
blenderbim.unregister()
|
||||
# Explicitely expose bim.xx when imported with from blenderbim import *
|
||||
# Other bim still are importable using explicit from blenderbim.bim import xxx
|
||||
__all__ = ["export_ifc", "import_ifc"]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
|
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 262 B |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 821 KiB After Width: | Height: | Size: 821 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
@@ -0,0 +1,3 @@
|
||||
# setup OCC as module
|
||||
|
||||
OCC
|
||||
@@ -0,0 +1,3 @@
|
||||
# expose ifcopenshell as site-package
|
||||
|
||||
ifcopenshell
|
||||
@@ -0,0 +1,3 @@
|
||||
# setup svgwrite
|
||||
|
||||
svgwrite
|
||||