f4pga/flows/common_modules/generic_script_wrapper: support script params of type list
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
parent
a9b7ac7c3d
commit
de9ed1f3db
|
@ -156,9 +156,15 @@ class GenericScriptWrapperModule(Module):
|
||||||
|
|
||||||
cwd = ctx.r_env.resolve(self.cwd)
|
cwd = ctx.r_env.resolve(self.cwd)
|
||||||
|
|
||||||
sub_args = [ctx.r_env.resolve(self.script_path, final=True)] + self.get_args(ctx)
|
sub_args = (
|
||||||
if self.interpreter:
|
([ctx.r_env.resolve(self.interpreter, final=True)] if self.interpreter else [])
|
||||||
sub_args = [ctx.r_env.resolve(self.interpreter, final=True)] + sub_args
|
+ (
|
||||||
|
self.script_path
|
||||||
|
if isinstance(self.script_path, list)
|
||||||
|
else [ctx.r_env.resolve(self.script_path, final=True)]
|
||||||
|
)
|
||||||
|
+ self.get_args(ctx)
|
||||||
|
)
|
||||||
|
|
||||||
sub_env = self.get_env(ctx)
|
sub_env = self.get_env(ctx)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue