# HG changeset patch # User Kim Alvefur # Date 1602077835 -7200 # Node ID 2b9f7c537acb7fc3bc817b472f8bc057a3987f30 # Parent 818255f49297b290b53de7b5c0c0ab0150a8e057 util.startup: Save the path used by the installer to prosody.paths Makes it easier for other parts of the code to use this for things, such as determining whether a certain module is from this path or from elsewhere. diff -r 818255f49297 -r 2b9f7c537acb util/startup.lua --- a/util/startup.lua Wed Oct 07 13:36:24 2020 +0200 +++ b/util/startup.lua Wed Oct 07 15:37:15 2020 +0200 @@ -269,6 +269,7 @@ require"util.paths".complement_lua_path(installer_plugin_path); -- luacheck: ignore 111 CFG_PLUGINDIR = installer_plugin_path..path_sep..(CFG_PLUGINDIR or "plugins"); + prosody.paths.installer = installer_plugin_path; prosody.paths.plugins = CFG_PLUGINDIR; end