From d217827ce8eb7402725e817290e1a17e5e660563 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 28 Sep 2021 14:34:44 +0200 Subject: [PATCH] fixed oiio tool path for linux machines --- start.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/start.py b/start.py index f3adabd942..919133d3df 100644 --- a/start.py +++ b/start.py @@ -403,15 +403,24 @@ def _validate_thirdparty_binaries(): raise RuntimeError(error_msg.format("FFmpeg")) # Validate existence of OpenImageIO (not on MacOs) - if low_platform != "darwin": + oiio_tool_path = None + if low_platform == "linux": + oiio_tool_path = os.path.join( + binary_vendors_dir, + "oiio", + low_platform, + "bin", + "oiiotool" + ) + elif low_platform == "windows": oiio_tool_path = os.path.join( binary_vendors_dir, "oiio", low_platform, "oiiotool" ) - if not is_tool(oiio_tool_path): - raise RuntimeError(error_msg.format("OpenImageIO")) + if oiio_tool_path is not None and not is_tool(oiio_tool_path): + raise RuntimeError(error_msg.format("OpenImageIO")) def _process_arguments() -> tuple: