OP-4643 - moved output argument to the end

This commit is contained in:
Petr Kalis 2023-01-27 13:17:59 +01:00
parent c6571b9dfd
commit 8598c1ec39

View file

@ -1081,8 +1081,7 @@ def convert_colorspace(
input_path,
# Don't add any additional attributes
"--nosoftwareattrib",
"--colorconfig", config_path,
"-o", output_path
"--colorconfig", config_path
]
if all([target_colorspace, view, display]):
@ -1100,5 +1099,7 @@ def convert_colorspace(
oiio_cmd.extend(["--iscolorspace", source_colorspace])
oiio_cmd.extend(["--ociodisplay", display, view])
oiio_cmd.extend(["-o", output_path])
logger.debug("Conversion command: {}".format(" ".join(oiio_cmd)))
run_subprocess(oiio_cmd, logger=logger)