summaryrefslogtreecommitdiff
path: root/libmat2/bubblewrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2/bubblewrap.py')
-rw-r--r--libmat2/bubblewrap.py2
1 files changed, 2 insertions, 0 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: