Changeset

11144:2b9f7c537acb

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.
author Kim Alvefur <zash@zash.se>
date Wed, 07 Oct 2020 15:37:15 +0200
parents 11143:818255f49297
children 11145:be73df6765b9
files util/startup.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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