Extract logging outside of function.
This commit is contained in:
@@ -8,6 +8,7 @@ from shutil import which
|
||||
|
||||
from typeguard import typechecked
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class MissingToolError(Exception):
|
||||
pass
|
||||
@@ -29,7 +30,6 @@ def check_required_tools() -> tuple[bool,dict[str,str]]:
|
||||
- bool: True if all optional tools are installed, False otherwise
|
||||
- dict[str, str]: dictionary containing the paths to all tools
|
||||
"""
|
||||
logger = logging.getLogger(__name__)
|
||||
all_optional_tools = True
|
||||
paths = {}
|
||||
required = ['ffmpeg', 'ffprobe', 'mkvmerge', 'mkvinfo']
|
||||
|
||||
Reference in New Issue
Block a user