Commit 385d0e05 authored by Jérome Perrin's avatar Jérome Perrin

Hack: add compatibility symbols for pypdf that might be in database

parent 58a93ad6
......@@ -117,3 +117,14 @@ def initialize( context ):
# backward compatibility names
XML = None
UI = None
try:
import pyPdf
except ImportError:
class pyPdfGeneric:
NameObject = type('NameObject', (str, ), {'__module__': 'pyPdf.Generic'})
sys.modules['pyPdf.Generic'] = pyPdfGeneric
sys.modules['pyPdf'] = pyPdfGeneric
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment