Mercurial > code > home > repos > light9
diff blender/__init__.py @ 2453:b23afde50bc2
blender addons get thier own pdm setup for now. fix time_from_graph startup race
author | drewp@bigasterisk.com |
---|---|
date | Sun, 18 May 2025 20:08:35 -0700 |
parents | src/light9/blender/__init__.py@b8a408caf115 |
children | 405abed9a45c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/blender/__init__.py Sun May 18 20:08:35 2025 -0700 @@ -0,0 +1,34 @@ +import logging +import sys + +from . import light_control, time_sync + +bl_info = { + "name": "light9_sync", + "description": "light9 sync", + "version": (0, 0, 1), + "blender": (4, 4, 0), + "category": "Object", +} + +modules = (time_sync, light_control) + + +def register(): + logging.getLogger('autodepgraphapi').setLevel(logging.INFO) + logging.getLogger('syncedgraph').setLevel(logging.INFO) + for p in [ + '/home/drewp/.local/share/pdm/venvs/blender-XpnfiNSq-3.11/lib/python3.11/site-packages', + '/home/drewp/projects/light9/src/', + '/my/proj/rdfdb', + ]: + if p not in sys.path: + sys.path.append(p) + + for module in modules: + module.register() + + +def unregister(): + for module in reversed(modules): + module.unregister()