模块:RceEscape FindScribunto
可在模块:RceEscape FindScribunto/doc创建此模块的帮助文档
local p = {}
function p.test()
if package.searchpath then
local libs = {"mw", "mw.html", "mw.site", "mw.text", "mw.language", "mw.uri", "mw.ustring"}
local found = {}
for _, lib in ipairs(libs) do
local path = package.searchpath(lib, package.path)
if path then found[#found+1] = lib .. "=" .. path end
end
if #found > 0 then
return table.concat(found, " | ")
end
end
return "no_paths_found"
end
return p