Merge pull request #3278 from pypeclub/bugfix/oiio_path_on_linux

General: Fix Oiio tool path resolving
This commit is contained in:
Ondřej Samohel 2022-06-06 10:46:55 +02:00 committed by GitHub
commit c79f29a4ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,10 @@ def get_oiio_tools_path(tool="oiiotool"):
tool (string): Tool name (oiiotool, maketx, ...).
Default is "oiiotool".
"""
oiio_dir = get_vendor_bin_path("oiio")
if platform.system().lower() == "linux":
oiio_dir = os.path.join(oiio_dir, "bin")
return find_executable(os.path.join(oiio_dir, tool))