From 6716db1f627b8e972b0cde0603dd7ec0ecdc8dcf Mon Sep 17 00:00:00 2001 From: Apprentice Harper Date: Sun, 29 Nov 2020 10:40:14 +0000 Subject: [PATCH] Derive calibre version tuple from __version__ string --- DeDRM_plugin/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeDRM_plugin/__init__.py b/DeDRM_plugin/__init__.py index 303bffd..cfd91b2 100644 --- a/DeDRM_plugin/__init__.py +++ b/DeDRM_plugin/__init__.py @@ -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'