Skip to content

Commit

Permalink
Use which from python stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
seakrueger committed Sep 8, 2024
1 parent 162b23d commit c7d79b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tagstudio/src/qt/modals/ffmpeg_checker.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import logging
import math
from pathlib import Path
from shutil import which
import subprocess

from PIL import Image, ImageQt
from pydub.utils import which
from PySide6.QtCore import Signal, Qt, QUrl
from PySide6.QtGui import QPixmap, QDesktopServices
from PySide6.QtWidgets import QMessageBox
Expand Down Expand Up @@ -36,7 +36,6 @@ def __init__(self):

def installed(self):
"""Checks if both FFmpeg and FFprobe are installed and in the PATH."""
# Same checker that ffmpeg-python uses
if which("ffmpeg"):
self.ffmpeg = True
if which("ffprobe"):
Expand Down

0 comments on commit c7d79b6

Please sign in to comment.