View Single Post
Old 01-05-2022, 03:50 PM   #68
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,696
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
All seems doable, thanks for the ideas! I may opt for something along the lines of:

Code:
from calibre.constants import numeric_version
if numeric_version < (5, 13, 0):
   PyQt5 imports
else:
   from qt.conf import yada
That should allow me to support Calibre 2.0+, with the advantage of being (somewhat) prepared for calibre PyQt7.
DiapDealer is offline   Reply With Quote