mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-04 01:08:26 +02:00
Merge pull request #1811 from alicevision/lv/paramOverrideList
[bin] meshroom_batch: allow passing list of values to param overrides
This commit is contained in:
commit
8e9128be8d
1 changed files with 3 additions and 0 deletions
|
@ -311,6 +311,9 @@ class ChoiceParam(Param):
|
|||
if self.exclusive:
|
||||
return self.conformValue(value)
|
||||
|
||||
if isinstance(value, pyCompatibility.basestring):
|
||||
value = value.split(',')
|
||||
|
||||
if not isinstance(value, pyCompatibility.Iterable):
|
||||
raise ValueError('Non exclusive ChoiceParam value should be iterable (param:{}, value:{}, type:{})'.format(self.name, value, type(value)))
|
||||
return [self.conformValue(v) for v in value]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue