diff options
author | Kim Alvefur <zash@zash.se> | 2020-10-07 15:37:15 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-10-07 15:37:15 +0200 |
commit | 810de3893ca5993290a9c3ed1525d4b7b14a8d91 (patch) | |
tree | ff88243f1a8eaf0184cd035e8469f082cb7886d9 /util | |
parent | ce5494d1c724a6bbe44e9f00dfae10b432011230 (diff) | |
download | prosody-810de3893ca5993290a9c3ed1525d4b7b14a8d91.tar.gz prosody-810de3893ca5993290a9c3ed1525d4b7b14a8d91.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')
-rw-r--r-- | util/startup.lua | 1 |
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 |