diff options
Diffstat (limited to 'libmat2/__init__.py')
| -rw-r--r-- | libmat2/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 = { | |||
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | 41 | ||
| 42 | |||
| 43 | def check_dependencies() -> Dict[str, bool]: | 42 | def check_dependencies() -> Dict[str, bool]: |
| 44 | ret = collections.defaultdict(bool) # type: Dict[str, bool] | 43 | ret = collections.defaultdict(bool) # type: Dict[str, bool] |
| 45 | 44 | ||
| 46 | ret['Exiftool'] = True if exiftool._get_exiftool_path() else False | 45 | ret['Exiftool'] = bool(exiftool._get_exiftool_path()) |
| 47 | ret['Ffmpeg'] = True if video._get_ffmpeg_path() else False | 46 | ret['Ffmpeg'] = bool(video._get_ffmpeg_path()) |
| 48 | 47 | ||
| 49 | for key, value in DEPENDENCIES.items(): | 48 | for key, value in DEPENDENCIES.items(): |
| 50 | ret[value] = True | 49 | ret[value] = True |
| @@ -55,6 +54,7 @@ def check_dependencies() -> Dict[str, bool]: | |||
| 55 | 54 | ||
| 56 | return ret | 55 | return ret |
| 57 | 56 | ||
| 57 | |||
| 58 | @enum.unique | 58 | @enum.unique |
| 59 | class UnknownMemberPolicy(enum.Enum): | 59 | class UnknownMemberPolicy(enum.Enum): |
| 60 | ABORT = 'abort' | 60 | ABORT = 'abort' |
