Replace which with winwhich.
This commit is contained in:
parent
317b03dd9f
commit
222d63857e
1 changed files with 4 additions and 2 deletions
|
@ -8,6 +8,8 @@ import string
|
||||||
import traceback
|
import traceback
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
from voussoirkit import winwhich
|
||||||
|
|
||||||
# FFmpeg ###########################################################################################
|
# FFmpeg ###########################################################################################
|
||||||
|
|
||||||
FFMPEG_NOT_FOUND = '''
|
FFMPEG_NOT_FOUND = '''
|
||||||
|
@ -18,8 +20,8 @@ Windows: where ffmpeg & where ffprobe
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def _load_ffmpeg():
|
def _load_ffmpeg():
|
||||||
ffmpeg_path = shutil.which('ffmpeg')
|
ffmpeg_path = winwhich.which('ffmpeg')
|
||||||
ffprobe_path = shutil.which('ffprobe')
|
ffprobe_path = winwhich.which('ffprobe')
|
||||||
|
|
||||||
if (not ffmpeg_path) or (not ffprobe_path):
|
if (not ffmpeg_path) or (not ffprobe_path):
|
||||||
warnings.warn(FFMPEG_NOT_FOUND)
|
warnings.warn(FFMPEG_NOT_FOUND)
|
||||||
|
|
Loading…
Reference in a new issue