aboutsummaryrefslogtreecommitdiffstats
path: root/util/startup.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-07 15:37:15 +0200
committerKim Alvefur <zash@zash.se>2020-10-07 15:37:15 +0200
commitf7f0a20abffc3535b02ffe06235964929cc87091 (patch)
treeff88243f1a8eaf0184cd035e8469f082cb7886d9 /util/startup.lua
parent0ffb4b893201b9af32dddc03021d2749377b214a (diff)
downloadprosody-f7f0a20abffc3535b02ffe06235964929cc87091.tar.gz
prosody-f7f0a20abffc3535b02ffe06235964929cc87091.zip
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.
Diffstat (limited to 'util/startup.lua')
-rw-r--r--util/startup.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/startup.lua b/util/startup.lua
index b7d9f6fe..f0b9b2c0 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -269,6 +269,7 @@ function startup.setup_plugin_install_path()
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