From b7f156121723531ea07f8930a298b6e82865ad6c Mon Sep 17 00:00:00 2001 From: Martin Arendtsen Date: Sun, 4 Mar 2018 21:37:04 +0100 Subject: [PATCH] Added support for paperless.conf in /usr/local/etc --- src/paperless/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index b998e101a..a9f314ecb 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -18,6 +18,8 @@ from dotenv import load_dotenv # Tap paperless.conf if it's available if os.path.exists("/etc/paperless.conf"): load_dotenv("/etc/paperless.conf") +elif os.path.exists("/usr/local/etc/paperless.conf"): + load_dotenv("/usr/local/etc/paperless.conf") # Build paths inside the project like this: os.path.join(BASE_DIR, ...)