From c752c7053dbac257cd1fdb6edfadbe50dc69c842 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 8 Jun 2022 18:59:08 -0700 Subject: [PATCH] Update main.py --- archivebox/main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/archivebox/main.py b/archivebox/main.py index f11244cb..55b9ae7b 100755 --- a/archivebox/main.py +++ b/archivebox/main.py @@ -209,8 +209,6 @@ def help(out_dir: Path=OUTPUT_DIR) -> None: def version(quiet: bool=False, out_dir: Path=OUTPUT_DIR) -> None: """Print the ArchiveBox version and dependency information""" - - from django.conf import settings if quiet: print(VERSION) @@ -226,13 +224,14 @@ def version(quiet: bool=False, platform.platform(), p.machine, ) + fs_is_mount = os.path.ismount(ARCHIVE_DIR) print( f'IN_DOCKER={IN_DOCKER}', f'DEBUG={DEBUG}', f'IS_TTY={IS_TTY}', f'TZ={TIMEZONE}', - f'DB={settings.DATABASES["default"]["engine"]} (({CONFIG["SQLITE_JOURNAL_MODE"]} {CONFIG["SQLITE_EXTENSIONS"]})', - f'FS={"atomic" if ENFORCE_ATOMIC_WRITES else "non-atomic"} {PUID}:{PGID} ({OUTPUT_PERMISSIONS})', + f'DB=django.db.backends.sqlite3 (({CONFIG["SQLITE_JOURNAL_MODE"]})', + f'FS={"remote" if fs_is_mount else "local" {"atomic" if ENFORCE_ATOMIC_WRITES else "non-atomic"} {PUID}:{PGID} ({OUTPUT_PERMISSIONS})', f'SEARCH_BACKEND_ENGINE={SEARCH_BACKEND_ENGINE}', ) print()