summaryrefslogtreecommitdiff
path: root/libmat2/__init__.py
diff options
context:
space:
mode:
authorintrigeri2019-02-03 09:43:27 +0000
committerjvoisin2019-02-03 19:18:41 +0100
commite8c1bb0e3c4cae579e81ce6a4b01b829900ff922 (patch)
treecd7146283c98f25544334cdd322b8c577ccc40d3 /libmat2/__init__.py
parent8b5d0c286c91537b43eb3284aa93b382636e7ebf (diff)
Whenever possible, use bwrap for subprocesses
This should closes #90
Diffstat (limited to 'libmat2/__init__.py')
-rw-r--r--libmat2/__init__.py6
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
43def check_dependencies() -> Dict[str, bool]: 42def 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
59class UnknownMemberPolicy(enum.Enum): 59class UnknownMemberPolicy(enum.Enum):
60 ABORT = 'abort' 60 ABORT = 'abort'