Thread
:
How to get version of Calibre being run from within plugin?
View Single Post
04-13-2011, 03:36 PM
#
2
kiwidude
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
from calibre.constants import numeric_version
Search Calibre for numeric_version to find the usages. It is basically a tuple like (0, 7, 54) that you can just do operator comparisons with. Plugin updater makes use of it.
kiwidude
View Public Profile
Find More Posts by kiwidude
Track Posts by kiwidude via RSS