# HG changeset patch # User Kim Alvefur # Date 1573255616 -3600 # Node ID e7f5735f19e18fc61ad719104ffaa4e97b3a4ab7 # Parent 29c10930a7b2242998bdfafc83350d5aef5d63b7 util.startup: Disable plugin installer path creation for now (see comments) diff -r 29c10930a7b2 -r e7f5735f19e1 util/startup.lua --- a/util/startup.lua Sat Nov 09 00:23:08 2019 +0100 +++ b/util/startup.lua Sat Nov 09 00:26:56 2019 +0100 @@ -240,7 +240,9 @@ function startup.setup_plugin_install_path() local installer_plugin_path = config.get("*", "installer_plugin_path") or "custom_plugins"; local path_sep = package.config:sub(3,3); + -- TODO Figure out what this should be relative to, because CWD could be anywhere installer_plugin_path = config.resolve_relative_path(require "lfs".currentdir(), installer_plugin_path); + -- TODO Can probably move directory creation to the install command require "lfs".mkdir(installer_plugin_path); require"util.paths".complement_lua_path(installer_plugin_path); -- luacheck: ignore 111 @@ -539,7 +541,7 @@ startup.force_console_logging(); startup.init_logging(); startup.setup_plugindir(); - startup.setup_plugin_install_path(); + -- startup.setup_plugin_install_path(); startup.setup_datadir(); startup.chdir(); startup.read_version(); @@ -565,7 +567,7 @@ startup.init_logging(); startup.load_libraries(); startup.setup_plugindir(); - startup.setup_plugin_install_path(); + -- startup.setup_plugin_install_path(); startup.setup_datadir(); startup.chdir(); startup.add_global_prosody_functions();