From c950271bc3511f3915819a06e8a120278c8ecc83 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 25 Sep 2024 05:12:34 -0700 Subject: [PATCH] fix more constants / config loading --- archivebox/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archivebox/main.py b/archivebox/main.py index 10c96807..7adeb3a9 100755 --- a/archivebox/main.py +++ b/archivebox/main.py @@ -138,7 +138,7 @@ def help(out_dir: Path=archivebox.DATA_DIR) -> None: ) - if (Path(out_dir) / SQL_INDEX_FILENAME).exists(): + if archivebox.CONSTANTS.DATABASE_FILE.exists(): print('''{green}ArchiveBox v{}: The self-hosted internet archive.{reset} {lightred}Active data directory:{reset} @@ -191,7 +191,7 @@ def version(quiet: bool=False, """Print the ArchiveBox version and dependency information""" setup_django_minimal() - from plugins_sys.config.apps import SEARCH_BACKEND_CONFIG, STORAGE_CONFIG, SHELL_CONFIG, CONSTANTS + from plugins_sys.config.apps import SEARCH_BACKEND_CONFIG, STORAGE_CONFIG, SHELL_CONFIG from plugins_auth.ldap.apps import LDAP_CONFIG from django.conf import settings