added one more last check for executable

This commit is contained in:
Jakub Trllo 2022-10-14 09:46:14 +02:00
parent 840792a82c
commit e3c2bb5a5e

View file

@ -265,6 +265,12 @@ def get_oiio_tools_path(tool="oiiotool"):
if _oiio_executable_validation(default_path):
tool_executable_path = default_path
# Look to PATH for the tool
if not tool_executable_path:
from_path = find_executable(tool)
if from_path and _oiio_executable_validation(from_path):
tool_executable_path = from_path
CachedToolPaths.cache_executable_path(tool, tool_executable_path)
return tool_executable_path
@ -339,6 +345,12 @@ def get_ffmpeg_tool_path(tool="ffmpeg"):
if tool_path and _ffmpeg_executable_validation(tool_path):
tool_executable_path = tool_path
# Look to PATH for the tool
if not tool_executable_path:
from_path = find_executable(tool)
if from_path and _oiio_executable_validation(from_path):
tool_executable_path = from_path
CachedToolPaths.cache_executable_path(tool, tool_executable_path)
return tool_executable_path