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:
Unai Martinez-Corral 2022-08-30 01:05:50 +02:00
parent a9b7ac7c3d
commit de9ed1f3db
1 changed files with 9 additions and 3 deletions

View File

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