diff options
Diffstat (limited to '')
| -rw-r--r-- | libmat2/bubblewrap.py | 2 | ||||
| -rw-r--r-- | libmat2/exiftool.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libmat2/bubblewrap.py b/libmat2/bubblewrap.py index 970d5dd..1bb0f82 100644 --- a/libmat2/bubblewrap.py +++ b/libmat2/bubblewrap.py | |||
| @@ -11,6 +11,7 @@ import os | |||
| 11 | import shutil | 11 | import shutil |
| 12 | import subprocess | 12 | import subprocess |
| 13 | import tempfile | 13 | import tempfile |
| 14 | import functools | ||
| 14 | from typing import List, Optional | 15 | from typing import List, Optional |
| 15 | 16 | ||
| 16 | 17 | ||
| @@ -21,6 +22,7 @@ CalledProcessError = subprocess.CalledProcessError | |||
| 21 | # pylint: disable=subprocess-run-check | 22 | # pylint: disable=subprocess-run-check |
| 22 | 23 | ||
| 23 | 24 | ||
| 25 | @functools.lru_cache | ||
| 24 | def _get_bwrap_path() -> str: | 26 | def _get_bwrap_path() -> str: |
| 25 | which_path = shutil.which('bwrap') | 27 | which_path = shutil.which('bwrap') |
| 26 | if which_path: | 28 | if which_path: |
diff --git a/libmat2/exiftool.py b/libmat2/exiftool.py index eb65b2a..933ea63 100644 --- a/libmat2/exiftool.py +++ b/libmat2/exiftool.py | |||
| @@ -70,7 +70,7 @@ class ExiftoolParser(abstract.AbstractParser): | |||
| 70 | return False | 70 | return False |
| 71 | return True | 71 | return True |
| 72 | 72 | ||
| 73 | @functools.lru_cache() | 73 | @functools.lru_cache |
| 74 | def _get_exiftool_path() -> str: # pragma: no cover | 74 | def _get_exiftool_path() -> str: # pragma: no cover |
| 75 | which_path = shutil.which('exiftool') | 75 | which_path = shutil.which('exiftool') |
| 76 | if which_path: | 76 | if which_path: |
