Software /
code /
prosody
Comparison
util/pluginloader.lua @ 11130:10485a3ef78b
util.pluginloader: Look for top level mod_something.lua in luarocks-style tree
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 05 Oct 2020 20:56:53 +0200 |
parent | 11129:387d442497e7 |
child | 11131:40abef01f4b9 |
comparison
equal
deleted
inserted
replaced
11129:387d442497e7 | 11130:10485a3ef78b |
---|---|
40 local names = { | 40 local names = { |
41 "mod_"..plugin..dir_sep..plugin..dir_sep..resource; -- mod_hello/hello/mod_hello.lua | 41 "mod_"..plugin..dir_sep..plugin..dir_sep..resource; -- mod_hello/hello/mod_hello.lua |
42 "mod_"..plugin..dir_sep..resource; -- mod_hello/mod_hello.lua | 42 "mod_"..plugin..dir_sep..resource; -- mod_hello/mod_hello.lua |
43 plugin..dir_sep..resource; -- hello/mod_hello.lua | 43 plugin..dir_sep..resource; -- hello/mod_hello.lua |
44 resource; -- mod_hello.lua | 44 resource; -- mod_hello.lua |
45 "share"..dir_sep.."lua"..dir_sep..lua_version..dir_sep..resource; | |
45 "share"..dir_sep.."lua"..dir_sep..lua_version..dir_sep.."mod_"..plugin..dir_sep..resource; | 46 "share"..dir_sep.."lua"..dir_sep..lua_version..dir_sep.."mod_"..plugin..dir_sep..resource; |
46 }; | 47 }; |
47 | 48 |
48 return load_file(names); | 49 return load_file(names); |
49 end | 50 end |