Thread
:
[Conversion Output] KePub Output Plugin
View Single Post
08-14-2014, 10:03 AM
#
107
kovidgoyal
creator of calibre
Posts: 45,494
Karma: 28005164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you want to make the imports completely robust you can do this:
from calibre import numeric_version
if numeric_version > (1, 200, 0):
# PyQt5
else:
# PyQt4
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS