Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Fix - oiiotool wasn't recognized even if present #2129

Merged
merged 2 commits into from
Oct 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions openpype/lib/plugin_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import re
import json
import tempfile
import distutils

from .execute import run_subprocess
from .profiles_filtering import filter_profiles
Expand Down Expand Up @@ -377,15 +378,18 @@ def oiio_supported():
"""
Checks if oiiotool is configured for this platform.

Expects full path to executable.
Triggers simple subprocess, handles exception if fails.

'should_decompress' will throw exception if configured,
but not present or not working.
Returns:
(bool)
"""
oiio_path = get_oiio_tools_path()
if not oiio_path or not os.path.exists(oiio_path):
if oiio_path:
oiio_path = distutils.spawn.find_executable(oiio_path)

if not oiio_path:
log.debug("OIIOTool is not configured or not present at {}".
format(oiio_path))
return False
Expand Down