mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 09:47:20 +02:00
[core] Update initPipelines
following removal of the "pipelines" folder
Since the "pipelines" folder does not exist anymore in Meshroom, there is no use to try and look for any file in it. Instead, we now only look for the paths that have been provided with the `MESHROOM_PIPELINE_TEMPLATES_PATH` environment variable.
This commit is contained in:
parent
cf29a6db74
commit
f5b79f6d39
1 changed files with 4 additions and 6 deletions
|
@ -347,13 +347,11 @@ def initSubmitters():
|
|||
|
||||
def initPipelines():
|
||||
meshroomFolder = os.path.dirname(os.path.dirname(__file__))
|
||||
# Load pipeline templates: check in the default folder and any folder the user might have
|
||||
# added to the environment variable
|
||||
additionalPipelinesPath = os.environ.get("MESHROOM_PIPELINE_TEMPLATES_PATH", "").split(os.pathsep)
|
||||
additionalPipelinesPath = [i for i in additionalPipelinesPath if i]
|
||||
pipelineTemplatesFolders = [os.path.join(meshroomFolder, 'pipelines')] + additionalPipelinesPath
|
||||
# Load pipeline templates: check in any folder the user might have added to the environment variable
|
||||
pipelinesPath = os.environ.get("MESHROOM_PIPELINE_TEMPLATES_PATH", "").split(os.pathsep)
|
||||
pipelineTemplatesFolders = [i for i in pipelinesPath if i]
|
||||
for f in pipelineTemplatesFolders:
|
||||
if os.path.isdir(f):
|
||||
loadPipelineTemplates(f)
|
||||
else:
|
||||
logging.error("Pipeline templates folder '{}' does not exist.".format(f))
|
||||
logging.warning("Pipeline templates folder '{}' does not exist.".format(f))
|
||||
|
|
Loading…
Add table
Reference in a new issue