aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 49ad12ac..c78c315b 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -117,6 +117,7 @@ function load(host, module_name, config)
local pluginenv = setmetatable({ module = api_instance }, { __index = _G });
api_instance.environment = pluginenv;
+ pluginenv._M = pluginenv;
setfenv(mod, pluginenv);
hosts[host].modules = modulemap[host];