# HG changeset patch # User Waqas Hussain # Date 1298214398 -18000 # Node ID f71e66702665ad74c0dff645e1972dddfd2f608d # Parent 2f4496f46da244f73f3e4b7a32cb084a7a205c30 modulemanager: Added module.path to the plugin API to let plugins determine their load path. diff -r 2f4496f46da2 -r f71e66702665 core/modulemanager.lua --- a/core/modulemanager.lua Sun Feb 20 20:03:43 2011 +0500 +++ b/core/modulemanager.lua Sun Feb 20 20:06:38 2011 +0500 @@ -117,7 +117,7 @@ end local _log = logger.init(host..":"..module_name); - local api_instance = setmetatable({ name = module_name, host = host, config = config, _log = _log, log = function (self, ...) return _log(...); end }, { __index = api }); + local api_instance = setmetatable({ name = module_name, host = host, path = err, config = config, _log = _log, log = function (self, ...) return _log(...); end }, { __index = api }); local pluginenv = setmetatable({ module = api_instance }, { __index = _G }); api_instance.environment = pluginenv;