mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
use get_path_to_ffmpeg which checks if any of filled ffmpeg paths in FFMPEG_PATH exists
This commit is contained in:
parent
c71b8dbf2c
commit
62b3f852f1
9 changed files with 28 additions and 13 deletions
|
|
@ -13,6 +13,15 @@ import avalon
|
|||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def get_path_to_ffmpeg():
|
||||
paths = os.environ.get("FFMPEG_PATH") or ""
|
||||
path_items = paths.split(os.pathsep)
|
||||
for item in path_items:
|
||||
item = os.path.normpath(item)
|
||||
if os.path.exists(item):
|
||||
return item
|
||||
return ""
|
||||
|
||||
# Special naming case for subprocess since its a built-in method.
|
||||
def _subprocess(*args, **kwargs):
|
||||
"""Convenience method for getting output errors for subprocess."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue