BUG: #1110 fix possible float to str conversion issue

Former-commit-id: 95dddd4fc4
pull/1161/head
Piero Toffanin 2020-09-11 16:41:55 +00:00
rodzic 2cc95a67b6
commit aaeea44599
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -474,7 +474,7 @@ class ToolchainTask(Task):
argv = get_submodel_argv(config.config(), submodels_path, submodel_name)
# Re-run the ODM toolchain on the submodel
system.run(" ".join(map(quote, argv)), env_vars=os.environ.copy())
system.run(" ".join(map(quote, map(str, argv))), env_vars=os.environ.copy())
# This will only get executed if the command above succeeds
self.touch(completed_file)

Wyświetl plik

@ -216,7 +216,7 @@ class ODMSplitStage(types.ODM_Stage):
argv = get_submodel_argv(args, tree.submodels_path, sp_octx.name())
# Re-run the ODM toolchain on the submodel
system.run(" ".join(map(quote, argv)), env_vars=os.environ.copy())
system.run(" ".join(map(quote, map(str, argv))), env_vars=os.environ.copy())
else:
lre.set_projects([os.path.abspath(os.path.join(p, "..")) for p in submodel_paths])
lre.run_toolchain()