# HG changeset patch # User Kim Alvefur # Date 1601924317 -7200 # Node ID 40abef01f4b9f99f4f73699de11d936a0a250df9 # Parent 10485a3ef78b337fb768c167ffd6b53d06d3754f util.pluginloader: Look for module libs in mod_plugin/lib.lua Luarocks can't be told to install something as foo.lib.lua AFAIK, so instead let's try mod_bar/foo.lua diff -r 10485a3ef78b -r 40abef01f4b9 util/pluginloader.lua --- a/util/pluginloader.lua Mon Oct 05 20:56:53 2020 +0200 +++ b/util/pluginloader.lua Mon Oct 05 20:58:37 2020 +0200 @@ -60,6 +60,9 @@ local function load_code_ext(plugin, resource, extension, env) local content, err = load_resource(plugin, resource.."."..extension); + if not content and extension == "lib.lua" then + content, err = load_resource(plugin, resource..".lua"); + end if not content then content, err = load_resource(resource, resource.."."..extension); if not content then