added oiio tools path getter

This commit is contained in:
iLLiCiTiT 2021-04-14 15:08:16 +02:00
parent 8e2b7edc69
commit 222e130332

View file

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