Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jvoisin
mat2
Commits
2dd196c2
Commit
2dd196c2
authored
Aug 05, 2022
by
jvoisin
Browse files
Make use of cache to get binary paths
parent
34eb878a
Pipeline
#103202
passed with stages
in 2 minutes and 22 seconds
Changes
2
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
libmat2/bubblewrap.py
View file @
2dd196c2
...
...
@@ -11,6 +11,7 @@ import os
import
shutil
import
subprocess
import
tempfile
import
functools
from
typing
import
List
,
Optional
...
...
@@ -21,6 +22,7 @@ CalledProcessError = subprocess.CalledProcessError
# pylint: disable=subprocess-run-check
@
functools
.
lru_cache
def
_get_bwrap_path
()
->
str
:
which_path
=
shutil
.
which
(
'bwrap'
)
if
which_path
:
...
...
libmat2/exiftool.py
View file @
2dd196c2
...
...
@@ -70,7 +70,7 @@ class ExiftoolParser(abstract.AbstractParser):
return
False
return
True
@
functools
.
lru_cache
()
@
functools
.
lru_cache
def
_get_exiftool_path
()
->
str
:
# pragma: no cover
which_path
=
shutil
.
which
(
'exiftool'
)
if
which_path
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment