mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-31 23:38:48 +02:00
The plugin manager is now effectively used for all the operations that involve registering or unregistering nodes.
14 lines
541 B
Python
14 lines
541 B
Python
import os
|
|
|
|
from meshroom.core import loadAllNodes
|
|
from meshroom.core import pluginManager
|
|
|
|
plugins = loadAllNodes(os.path.join(os.path.dirname(__file__), "nodes"))
|
|
for plugin in plugins:
|
|
pluginManager.addPlugin(plugin)
|
|
pluginManager.registerPlugin(plugin.name)
|
|
|
|
if os.getenv("MESHROOM_PIPELINE_TEMPLATES_PATH", False):
|
|
os.environ["MESHROOM_PIPELINE_TEMPLATES_PATH"] += os.pathsep + os.path.dirname(os.path.realpath(__file__))
|
|
else:
|
|
os.environ["MESHROOM_PIPELINE_TEMPLATES_PATH"] = os.path.dirname(os.path.realpath(__file__))
|