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

Commit

Permalink
Merge pull request #2083 from pypeclub/bugfix/linux_oiio_path_fix
Browse files Browse the repository at this point in the history
General: Startup validations oiio tool path fix on linux
  • Loading branch information
iLLiCiTiT authored Sep 29, 2021
2 parents 3f5c095 + d217827 commit 077e243
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,15 +403,24 @@ def _validate_thirdparty_binaries():
raise RuntimeError(error_msg.format("FFmpeg"))

# Validate existence of OpenImageIO (not on MacOs)
if low_platform != "darwin":
oiio_tool_path = None
if low_platform == "linux":
oiio_tool_path = os.path.join(
binary_vendors_dir,
"oiio",
low_platform,
"bin",
"oiiotool"
)
if not is_tool(oiio_tool_path):
raise RuntimeError(error_msg.format("OpenImageIO"))
elif low_platform == "windows":
oiio_tool_path = os.path.join(
binary_vendors_dir,
"oiio",
low_platform,
"oiiotool"
)
if oiio_tool_path is not None and not is_tool(oiio_tool_path):
raise RuntimeError(error_msg.format("OpenImageIO"))


def _process_arguments() -> tuple:
Expand Down

0 comments on commit 077e243

Please sign in to comment.