Diff

util/startup.lua @ 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
parent 11139:2187643b8e20
child 11149:28add4b22a74
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