diff options
Diffstat (limited to 'libmat2/exiftool.py')
| -rw-r--r-- | libmat2/exiftool.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmat2/exiftool.py b/libmat2/exiftool.py index d18b1fb..2e83f13 100644 --- a/libmat2/exiftool.py +++ b/libmat2/exiftool.py | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | import functools | ||
| 1 | import json | 2 | import json |
| 2 | import logging | 3 | import logging |
| 3 | import os | 4 | import os |
| @@ -56,6 +57,7 @@ class ExiftoolParser(abstract.AbstractParser): | |||
| 56 | return False | 57 | return False |
| 57 | return True | 58 | return True |
| 58 | 59 | ||
| 60 | @functools.lru_cache() | ||
| 59 | def _get_exiftool_path() -> str: # pragma: no cover | 61 | def _get_exiftool_path() -> str: # pragma: no cover |
| 60 | possible_pathes = { | 62 | possible_pathes = { |
| 61 | '/usr/bin/exiftool', # debian/fedora | 63 | '/usr/bin/exiftool', # debian/fedora |
