Merge pull request #1811 from alicevision/lv/paramOverrideList

[bin] meshroom_batch: allow passing list of values to param overrides
This commit is contained in:
Fabien Castan 2022-11-17 20:20:38 +01:00 committed by GitHub
commit 8e9128be8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]