mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +02:00
[core] Check folder is valid before loading templates from it
This commit is contained in:
parent
dc8b724495
commit
04b36781d9
1 changed files with 4 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue