fix: also look for FFmpeg next to the running python interpreter
Dropping ffmpeg.exe into python_embeded (next to python.exe) is a common Windows support instruction; scan sys.executable's folder after the portable root and CWD candidates.
This commit is contained in:
parent
d26e3297a6
commit
08229541c3
@ -7,6 +7,7 @@ import math
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import urllib.request
|
||||
from .media import AUDIO_EXTENSIONS
|
||||
@ -600,6 +601,7 @@ def get_ffmpeg_path(name: str = "ffmpeg") -> str | None:
|
||||
if base:
|
||||
roots.append(base)
|
||||
roots.append(os.path.dirname(os.path.abspath(base)))
|
||||
roots.append(os.path.dirname(os.path.abspath(sys.executable)))
|
||||
roots.append(os.getcwd())
|
||||
for root in roots:
|
||||
candidates.extend([
|
||||
|
||||
Loading…
Reference in New Issue
Block a user