Derive calibre version tuple from __version__ string

This commit is contained in:
Apprentice Harper 2020-11-29 10:40:14 +00:00
parent 464788a3f1
commit 6716db1f62
1 changed files with 1 additions and 1 deletions

View 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'