Fix: correct PAPERLESS_EMPTY_TRASH_DIR to Path (#10227)

This commit is contained in:
shamoon
2025-06-19 11:50:23 -07:00
committed by GitHub
parent 240c9ac511
commit f214440d2e
3 changed files with 7 additions and 7 deletions

View File

@@ -270,9 +270,10 @@ DATA_DIR = __get_path("PAPERLESS_DATA_DIR", BASE_DIR.parent / "data")
NLTK_DIR = __get_path("PAPERLESS_NLTK_DIR", "/usr/share/nltk_data")
# Check deprecated setting first
EMPTY_TRASH_DIR = os.getenv(
"PAPERLESS_TRASH_DIR",
os.getenv("PAPERLESS_EMPTY_TRASH_DIR"),
EMPTY_TRASH_DIR = (
__get_path("PAPERLESS_TRASH_DIR", os.getenv("PAPERLESS_EMPTY_TRASH_DIR"))
if os.getenv("PAPERLESS_TRASH_DIR") or os.getenv("PAPERLESS_EMPTY_TRASH_DIR")
else None
)
# Lock file for synchronizing changes to the MEDIA directory across multiple