1
0
Fork 0
mirror of synced 2025-07-03 20:07:28 +02:00

Whenever possible, use bwrap for subprocesses

This should closes  #90
This commit is contained in:
intrigeri 2019-02-03 09:43:27 +00:00 committed by jvoisin
parent 8b5d0c286c
commit e8c1bb0e3c
11 changed files with 137 additions and 12 deletions

View file

@ -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'