summaryrefslogtreecommitdiff
path: root/libmat2/images.py
diff options
context:
space:
mode:
authorjvoisin2018-09-01 15:07:01 +0200
committerjvoisin2018-09-01 15:41:22 +0200
commit91e80527fc63140dc0c0a7afebe74f37494abd68 (patch)
treebfc63057fae5a8bf73423e6a02a5a1551e2083a9 /libmat2/images.py
parent7877ba0da5970de0615c1299b462d067218f5d18 (diff)
Add archlinux to the CI
Diffstat (limited to 'libmat2/images.py')
-rw-r--r--libmat2/images.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmat2/images.py b/libmat2/images.py
index faa93a4..837f015 100644
--- a/libmat2/images.py
+++ b/libmat2/images.py
@@ -13,7 +13,7 @@ import gi
13gi.require_version('GdkPixbuf', '2.0') 13gi.require_version('GdkPixbuf', '2.0')
14from gi.repository import GdkPixbuf 14from gi.repository import GdkPixbuf
15 15
16from . import abstract 16from . import abstract, _get_exiftool_path
17 17
18# Make pyflakes happy 18# Make pyflakes happy
19assert Set 19assert Set
@@ -40,7 +40,7 @@ class _ImageParser(abstract.AbstractParser):
40 self.filename to prevent parameter injections, so we need to take care 40 self.filename to prevent parameter injections, so we need to take care
41 of this. 41 of this.
42 """ 42 """
43 fun = lambda f: subprocess.check_output(['/usr/bin/exiftool', '-json', f]) 43 fun = lambda f: subprocess.check_output([_get_exiftool_path(), '-json', f])
44 if re.search('^[a-z0-9/]', self.filename) is None: 44 if re.search('^[a-z0-9/]', self.filename) is None:
45 out = self.__handle_problematic_filename(self.filename, fun) 45 out = self.__handle_problematic_filename(self.filename, fun)
46 else: 46 else: