mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-26 21:17:29 +02:00
[nodes] fix Publish node: ListAttribute is not iterable
use ListAttribute's value to iterate over list elements
This commit is contained in:
parent
9e4aa3aa6c
commit
d2e8979f66
1 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
__version__ = "1.0"
|
__version__ = "1.1"
|
||||||
|
|
||||||
from meshroom.core import desc
|
from meshroom.core import desc
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -48,10 +48,11 @@ class Publish(desc.Node):
|
||||||
if not chunk.node.output.value:
|
if not chunk.node.output.value:
|
||||||
return
|
return
|
||||||
|
|
||||||
outFiles = self.resolvedPaths(chunk.node.inputFiles, chunk.node.output.value)
|
outFiles = self.resolvedPaths(chunk.node.inputFiles.value, chunk.node.output.value)
|
||||||
|
|
||||||
if not outFiles:
|
if not outFiles:
|
||||||
raise RuntimeError("Publish: input files listed, but nothing to publish. Listed input files: {}".format(chunk.node.inputFiles))
|
raise RuntimeError("Publish: input files listed, but nothing to publish. "
|
||||||
|
"Listed input files: {}".format(chunk.node.inputFiles.value))
|
||||||
|
|
||||||
if not os.path.exists(chunk.node.output.value):
|
if not os.path.exists(chunk.node.output.value):
|
||||||
os.mkdir(chunk.node.output.value)
|
os.mkdir(chunk.node.output.value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue