From 18dd1345fa3cf1634c5588601456f004725cba8c Mon Sep 17 00:00:00 2001 From: Anton Popov Date: Thu, 2 Sep 2021 02:46:23 +0300 Subject: [PATCH] return accidentally removed code --- programs/server/Server.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/programs/server/Server.cpp b/programs/server/Server.cpp index 4e2be1fa9a9..ff4cf6e74fb 100644 --- a/programs/server/Server.cpp +++ b/programs/server/Server.cpp @@ -768,6 +768,12 @@ if (ThreadFuzzer::instance().isEffective()) fs::create_directories(dictionaries_lib_path); } + { + std::string user_scripts_path = config().getString("user_scripts_path", path / "user_scripts/"); + global_context->setUserScriptsPath(user_scripts_path); + fs::create_directories(user_scripts_path); + } + /// top_level_domains_lists { const std::string & top_level_domains_path = config().getString("top_level_domains_path", path / "top_level_domains/");