From 7a64067d72449076c57551192c1e65e5708ad69c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 3 Oct 2020 09:39:54 +0530 Subject: [PATCH] ... --- src/calibre/customize/zipplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/customize/zipplugin.py b/src/calibre/customize/zipplugin.py index d7e5b759e9..437dc44104 100644 --- a/src/calibre/customize/zipplugin.py +++ b/src/calibre/customize/zipplugin.py @@ -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'