Skip to content

Commit

Permalink
Merge pull request #2552 from alicevision/fix/tryLoadTemplates
Browse files Browse the repository at this point in the history
[core] Check provided template folder exists before attempting to load it
  • Loading branch information
fabiencastan authored Sep 27, 2024
2 parents 809d43b + 04b3678 commit dad6c4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meshroom/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,4 +353,7 @@ def initPipelines():
additionalPipelinesPath = [i for i in additionalPipelinesPath if i]
pipelineTemplatesFolders = [os.path.join(meshroomFolder, 'pipelines')] + additionalPipelinesPath
for f in pipelineTemplatesFolders:
loadPipelineTemplates(f)
if os.path.isdir(f):
loadPipelineTemplates(f)
else:
logging.error("Pipeline templates folder '{}' does not exist.".format(f))

0 comments on commit dad6c4a

Please sign in to comment.