From 0f7d8900856cfda344d240d6d9e86333c55bf72f Mon Sep 17 00:00:00 2001 From: khaledk2 Date: Fri, 10 Nov 2023 11:36:22 +0000 Subject: [PATCH] fix maintenance_scripts folder --- tools/utils/util.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/utils/util.py b/tools/utils/util.py index 37937470..11462fcc 100644 --- a/tools/utils/util.py +++ b/tools/utils/util.py @@ -26,7 +26,8 @@ def copy_tools_subfolder(): """ - Copy the maintenance_scripts folder to the searchengine folder + Copy the maintenance_scripts folder to the maintenance_scripts + inside the searchengine folder """ subfolder = os.path.join( os.path.abspath(os.path.dirname(__file__)), "../maintenance_scripts" @@ -34,9 +35,7 @@ def copy_tools_subfolder(): destination_folder = "/etc/searchengine/" if not os.path.isdir(destination_folder): destination_folder = os.path.expanduser("~") - destination_folder = os.path.join( - destination_folder, "searchengine/maintenance_scripts" - ) + destination_folder = os.path.join(destination_folder, "maintenance_scripts") if not os.path.isdir(destination_folder): shutil.copytree(subfolder, destination_folder)