node_kit/__init__.py

41 lines
707 B
Python
Raw Normal View History

2024-02-22 10:09:34 +01:00
bl_info = {
"name": "Node Kit",
"author": "Florentin Luce",
"version": (0, 1),
"blender": (4, 0, 2),
"category": "Node"}
import sys
import importlib
from pathlib import Path
# Ensure the name of the module in python import
module_name = Path(__file__).parent.name
sys.modules.update({'node_kit': importlib.import_module(module_name)})
from node_kit import ui, operators
modules = (
ui,
operators,
)
if "bpy" in locals():
import importlib
for mod in modules:
importlib.reload(mod)
def register():
print('Register Noke kit')
for mod in modules:
mod.register()
def unregister():
for mod in reversed(modules):
mod.unregister()