summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libmat2/bubblewrap.py2
-rw-r--r--libmat2/exiftool.py2
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
11import shutil 11import shutil
12import subprocess 12import subprocess
13import tempfile 13import tempfile
14import functools
14from typing import List, Optional 15from 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
24def _get_bwrap_path() -> str: 26def _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
74def _get_exiftool_path() -> str: # pragma: no cover 74def _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: