Files
IfcOpenShell/src/ifcblenderexport/blenderbim/__init__.py
T

34 lines
999 B
Python
Raw Normal View History

2019-09-26 21:55:30 +10:00
bl_info = {
2019-11-17 12:29:02 +11:00
"name": "BlenderBIM",
"description": "Author, import, and export files in the "
2019-09-26 21:55:30 +10:00
"Industry Foundation Classes (.ifc) file format",
"author": "Dion Moult, IfcOpenShell",
"blender": (2, 80, 0),
"version": (0, 0, 999999),
2019-11-17 12:29:02 +11:00
"location": "File > Export, File > Import, Scene / Object / Material / Mesh Properties",
2020-03-22 15:25:57 +11:00
"tracker_url": "https://github.com/IfcOpenShell/IfcOpenShell/issues",
"category": "Import-Export"
}
2019-09-26 21:55:30 +10:00
import os
import site
# 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"))
2019-09-26 21:55:30 +10:00
# main import
from .bim import *
# 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"]
2019-12-19 16:49:27 +11:00
2019-09-26 21:55:30 +10:00
if __name__ == "__main__":
register()