Changeset

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
parents 11129:387d442497e7
children 11131:40abef01f4b9
files util/pluginloader.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util/pluginloader.lua	Mon Oct 05 20:56:03 2020 +0200
+++ b/util/pluginloader.lua	Mon Oct 05 20:56:53 2020 +0200
@@ -42,6 +42,7 @@
 		"mod_"..plugin..dir_sep..resource;                  -- mod_hello/mod_hello.lua
 		plugin..dir_sep..resource;                          -- hello/mod_hello.lua
 		resource;                                           -- mod_hello.lua
+		"share"..dir_sep.."lua"..dir_sep..lua_version..dir_sep..resource;
 		"share"..dir_sep.."lua"..dir_sep..lua_version..dir_sep.."mod_"..plugin..dir_sep..resource;
 	};