From 4658cc16e045849339c9168fe04cff7745f9b804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tronel?= Date: Sat, 29 Aug 2026 13:56:04 +0200 Subject: [PATCH] Extract logging outside of function. --- src/tscut/tools/discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tscut/tools/discovery.py b/src/tscut/tools/discovery.py index 94d28a5..b56a721 100644 --- a/src/tscut/tools/discovery.py +++ b/src/tscut/tools/discovery.py @@ -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']