From c4271715e49bb90d9420a8394e250bc8bcabdbcb Mon Sep 17 00:00:00 2001
From: jvoisin <julien.voisin@dustri.org>
Date: Mon, 30 Apr 2018 23:57:05 +0200
Subject: [PATCH] Use full path to call exiftool

---
 src/images.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/images.py b/src/images.py
index 13ae7a7..7c1abaa 100644
--- a/src/images.py
+++ b/src/images.py
@@ -21,7 +21,7 @@ class PNGParser(abstract.AbstractParser):
             'Megapixels', 'ImageHeight'}
 
     def get_meta(self):
-        out = subprocess.check_output(['exiftool', '-json', self.filename])
+        out = subprocess.check_output(['/usr/bin/exiftool', '-json', self.filename])
         meta = json.loads(out.decode('utf-8'))[0]
         for key in self.meta_whitelist:
             meta.pop(key, None)
@@ -38,7 +38,7 @@ class GdkPixbufAbstractParser(abstract.AbstractParser):
         this has the side-effect of removing metadata completely.
     """
     def get_meta(self):
-        out = subprocess.check_output(['exiftool', '-json', self.filename])
+        out = subprocess.check_output(['/usr/bin/exiftool', '-json', self.filename])
         meta = json.loads(out.decode('utf-8'))[0]
         for key in self.meta_whitelist:
             meta.pop(key, None)
-- 
GitLab