Merge pull request #322 from Arendtsen/master

Added support for paperless.conf in /usr/local/etc
This commit is contained in:
Daniel Quinn 2018-03-05 12:34:40 +01:00 committed by GitHub
commit b6a266a4f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,8 @@ from dotenv import load_dotenv
# Tap paperless.conf if it's available # Tap paperless.conf if it's available
if os.path.exists("/etc/paperless.conf"): if os.path.exists("/etc/paperless.conf"):
load_dotenv("/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, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)