mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
guess plugin name from plugin path
This commit is contained in:
@@ -26,8 +26,8 @@ function PluginLoader:loadPlugins()
|
||||
package.path = package_path
|
||||
package.cpath = package_cpath
|
||||
if ok then
|
||||
module.name = module.name or "unknownplugin"
|
||||
module.path = path
|
||||
module.name = module.name or path:match("/(.-)%.koplugin")
|
||||
table.insert(self.plugins, module)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user