guess plugin name from plugin path

This commit is contained in:
chrox
2014-10-09 12:38:33 +08:00
parent a4d5ec6534
commit d01ae145b8

View File

@@ -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