diff options
| author | jvoisin | 2015-12-20 15:47:13 +0100 |
|---|---|---|
| committer | jvoisin | 2015-12-20 15:47:13 +0100 |
| commit | 731444154c52461d69ad1b9331b7f9af900f693d (patch) | |
| tree | 8aebb8f05e188f77183c64e8ae3715fb63259fae /libmat/strippers.py | |
| parent | e51ae6bdaa9cbcbf9a3b71bbefd68a6755d94030 (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/strippers.py')
| -rw-r--r-- | libmat/strippers.py | 2 |
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 |
| 26 | pdfSupport = True | 26 | pdfSupport = True |
| 27 | try: | 27 | try: |
| 28 | import gi | ||
| 29 | gi.require_version('Poppler', '0.18') | ||
| 28 | from gi.repository import Poppler | 30 | from gi.repository import Poppler |
| 29 | except ImportError: | 31 | except ImportError: |
| 30 | logging.error('Unable to import Poppler: no PDF support') | 32 | logging.error('Unable to import Poppler: no PDF support') |
