]> xmof Git - DeDRM.git/commitdiff
Derive calibre version tuple from __version__ string
authorApprentice Harper <apprenticeharper@gmail.com>
Sun, 29 Nov 2020 10:40:14 +0000 (10:40 +0000)
committerApprentice Harper <apprenticeharper@gmail.com>
Sun, 29 Nov 2020 10:40:14 +0000 (10:40 +0000)
DeDRM_plugin/__init__.py

index 303bffdd5b078dba37da0a0314868305a557b8d7..cfd91b201c67f796e8bf968b50d3ade8a6bc3545 100644 (file)
@@ -78,7 +78,7 @@ Decrypt DRMed ebooks.
 """
 
 PLUGIN_NAME = u"DeDRM"
-PLUGIN_VERSION_TUPLE = (6, 8, 0)
+PLUGIN_VERSION_TUPLE = tuple([int(x) for x in __version__.split(".")])
 PLUGIN_VERSION = u".".join([unicode(str(x)) for x in PLUGIN_VERSION_TUPLE])
 # Include an html helpfile in the plugin's zipfile with the following name.
 RESOURCE_NAME = PLUGIN_NAME + '_Help.htm'