Skip to content

Commit

Permalink
fix maintenance_scripts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Nov 10, 2023
1 parent f4c7ffe commit 0f7d890
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,16 @@

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"
)
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)
Expand Down

0 comments on commit 0f7d890

Please sign in to comment.