guess plugin name from plugin path
This commit is contained in:
1 parent
a4d5ec6534
commit
d01ae145b8
1 file changed
+1
-1
@@ -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