diff options
| author | jvoisin | 2018-09-01 16:58:34 +0200 |
|---|---|---|
| committer | jvoisin | 2018-09-01 16:58:34 +0200 |
| commit | 907fc591ccba295abafbb99fa59e8764f712e34a (patch) | |
| tree | 5e82b3a9689e0ae67fd5e3a4cca0378460b33532 /libmat2/__init__.py | |
| parent | 8255293d1d78e969eae49a9e94b7051f23283f6b (diff) | |
Bump the coverage back to 100%
Diffstat (limited to '')
| -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 6067861..bf4e813 100644 --- a/libmat2/__init__.py +++ b/libmat2/__init__.py | |||
| @@ -35,16 +35,16 @@ DEPENDENCIES = { | |||
| 35 | 'mutagen': 'Mutagen', | 35 | 'mutagen': 'Mutagen', |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | def _get_exiftool_path() -> Optional[str]: | 38 | def _get_exiftool_path() -> Optional[str]: # pragma: no cover |
| 39 | exiftool_path = '/usr/bin/exiftool' | 39 | exiftool_path = '/usr/bin/exiftool' |
| 40 | if os.path.isfile(exiftool_path): | 40 | if os.path.isfile(exiftool_path): |
| 41 | if os.access(exiftool_path, os.X_OK): # pragma: no cover | 41 | if os.access(exiftool_path, os.X_OK): |
| 42 | return exiftool_path | 42 | return exiftool_path |
| 43 | 43 | ||
| 44 | # ArchLinux | 44 | # ArchLinux |
| 45 | exiftool_path = '/usr/bin/vendor_perl/exiftool' | 45 | exiftool_path = '/usr/bin/vendor_perl/exiftool' |
| 46 | if os.path.isfile(exiftool_path): | 46 | if os.path.isfile(exiftool_path): |
| 47 | if os.access(exiftool_path, os.X_OK): # pragma: no cover | 47 | if os.access(exiftool_path, os.X_OK): |
| 48 | return exiftool_path | 48 | return exiftool_path |
| 49 | 49 | ||
| 50 | return None | 50 | return None |
