From 222e13033272cbf389e9255dad4cba56b36b2011 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 14 Apr 2021 15:08:16 +0200 Subject: [PATCH] added oiio tools path getter --- openpype/lib/ffmpeg_utils.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openpype/lib/ffmpeg_utils.py b/openpype/lib/ffmpeg_utils.py index edb2e903f5..3b923cb608 100644 --- a/openpype/lib/ffmpeg_utils.py +++ b/openpype/lib/ffmpeg_utils.py @@ -30,6 +30,17 @@ def get_vendor_bin_path(bin_app): ) +def get_oiio_tools_path(tool="oiiotool"): + """Path to vendorized OpenImageIO tool executables. + + Args: + tool (string): Tool name (oiiotool, maketx, ...). + Default is "oiiotool". + """ + oiio_dir = get_vendor_bin_path("oiio") + return os.path.join(oiio_dir, tool) + + def get_ffmpeg_tool_path(tool="ffmpeg"): """Path to vendorized FFmpeg executable.