summaryrefslogtreecommitdiff
path: root/libmat
diff options
context:
space:
mode:
authorjvoisin2015-12-20 15:47:13 +0100
committerjvoisin2015-12-20 15:47:13 +0100
commit731444154c52461d69ad1b9331b7f9af900f693d (patch)
tree8aebb8f05e188f77183c64e8ae3715fb63259fae /libmat
parente51ae6bdaa9cbcbf9a3b71bbefd68a6755d94030 (diff)
Improves the previous commit thanks to intrigeri
I forgot to add `gi.require_version('Poppler', '0.18')` everywhere, and `gi.require_version('Gtk', '3.0')` in mat-gui too
Diffstat (limited to 'libmat')
-rw-r--r--libmat/strippers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmat/strippers.py b/libmat/strippers.py
index c170332..53591ad 100644
--- a/libmat/strippers.py
+++ b/libmat/strippers.py
@@ -25,6 +25,8 @@ logging.basicConfig(level=mat.LOGGING_LEVEL)
25# PDF support 25# PDF support
26pdfSupport = True 26pdfSupport = True
27try: 27try:
28 import gi
29 gi.require_version('Poppler', '0.18')
28 from gi.repository import Poppler 30 from gi.repository import Poppler
29except ImportError: 31except ImportError:
30 logging.error('Unable to import Poppler: no PDF support') 32 logging.error('Unable to import Poppler: no PDF support')