From e8c1bb0e3c4cae579e81ce6a4b01b829900ff922 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sun, 3 Feb 2019 09:43:27 +0000 Subject: Whenever possible, use bwrap for subprocesses This should closes #90 --- libmat2/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmat2/__init__.py') diff --git a/libmat2/__init__.py b/libmat2/__init__.py index 58cf976..be7067b 100644 --- a/libmat2/__init__.py +++ b/libmat2/__init__.py @@ -39,12 +39,11 @@ DEPENDENCIES = { } - def check_dependencies() -> Dict[str, bool]: ret = collections.defaultdict(bool) # type: Dict[str, bool] - ret['Exiftool'] = True if exiftool._get_exiftool_path() else False - ret['Ffmpeg'] = True if video._get_ffmpeg_path() else False + ret['Exiftool'] = bool(exiftool._get_exiftool_path()) + ret['Ffmpeg'] = bool(video._get_ffmpeg_path()) for key, value in DEPENDENCIES.items(): ret[value] = True @@ -55,6 +54,7 @@ def check_dependencies() -> Dict[str, bool]: return ret + @enum.unique class UnknownMemberPolicy(enum.Enum): ABORT = 'abort' -- cgit v1.3