diff --git a/index_for_search.py b/index_for_search.py index 08e19d0..ee3d559 100644 --- a/index_for_search.py +++ b/index_for_search.py @@ -4,6 +4,7 @@ import sqlite3 SEARCH_DB_NAME = 'search.db' ACCESS_LOG_DB_NAME = 'access_log.db' +FOLDER_CONFIG = 'folder_permission_config.json' # Connect to the search database. search_db = sqlite3.connect(SEARCH_DB_NAME, check_same_thread=False) @@ -69,7 +70,7 @@ def updatefileindex(): cursor = search_db.cursor() # Load folder configuration from JSON file. - with open("folder_config.json", "r", encoding="utf-8") as f: + with open(FOLDER_CONFIG, "r", encoding="utf-8") as f: config_data = json.load(f) # Process each configured base folder.