This commit is contained in:
Kovid Goyal 2020-10-03 09:39:54 +05:30
parent 70ca16c3ef
commit 7a64067d72
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -251,7 +251,7 @@ class CalibrePluginFinder:
is_package = bool(
fullname.count('.') < 2 or
fullname_in_plugin == '__init__' or
(fullname_in_plugin and fullname_in_plugin.endswith('__init__'))
(fullname_in_plugin and fullname_in_plugin.endswith('.__init__'))
)
if zip_file_path:
filename = posixpath.join(zip_file_path, *fullname_in_plugin.split('.')) + '.py'