diff --git a/meshroom/core/__init__.py b/meshroom/core/__init__.py index 7f9760d3b3..834ace0ae2 100644 --- a/meshroom/core/__init__.py +++ b/meshroom/core/__init__.py @@ -272,9 +272,17 @@ def loadSubmitters(folder, packageName): meshroomFolder = os.path.dirname(os.path.dirname(__file__)) +additionalNodesPath = os.environ.get("MESHROOM_NODES_PATH", "").split(os.pathsep) +# filter empty strings +additionalNodesPath = [i for i in additionalNodesPath if i] + # Load plugins: # - Nodes -loadAllNodes(folder=os.path.join(meshroomFolder, 'nodes')) +nodesFolders = [os.path.join(meshroomFolder, 'nodes')] + additionalNodesPath + +for f in nodesFolders: + loadAllNodes(folder=f) + # - Submitters subs = loadSubmitters(os.environ.get("MESHROOM_SUBMITTERS_PATH", meshroomFolder), 'submitters')