From 222d63857eb0c05aaec13e4e3e8da8b03afde702 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 21 Jan 2020 23:50:11 -0800 Subject: [PATCH] Replace which with winwhich. --- etiquette/constants.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etiquette/constants.py b/etiquette/constants.py index 7bfee47..98eab7c 100644 --- a/etiquette/constants.py +++ b/etiquette/constants.py @@ -8,6 +8,8 @@ import string import traceback import warnings +from voussoirkit import winwhich + # FFmpeg ########################################################################################### FFMPEG_NOT_FOUND = ''' @@ -18,8 +20,8 @@ Windows: where ffmpeg & where ffprobe ''' def _load_ffmpeg(): - ffmpeg_path = shutil.which('ffmpeg') - ffprobe_path = shutil.which('ffprobe') + ffmpeg_path = winwhich.which('ffmpeg') + ffprobe_path = winwhich.which('ffprobe') if (not ffmpeg_path) or (not ffprobe_path): warnings.warn(FFMPEG_NOT_FOUND)