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