Introducing optional env vars for ImageMagick

This commit is contained in:
Daniel Quinn
2016-03-25 20:31:15 +00:00
parent 396ff98b41
commit 9991f5a6b2
3 changed files with 51 additions and 10 deletions

View File

@@ -189,6 +189,8 @@ GNUPG_HOME = os.getenv("HOME", "/tmp")
# Convert is part of the ImageMagick package
CONVERT_BINARY = os.getenv("PAPERLESS_CONVERT_BINARY")
CONVERT_TMPDIR = os.getenv("PAPERLESS_CONVERT_TMPDIR")
CONVERT_MEMORY_LIMIT = os.getenv("PAPERLESS_CONVERT_MEMORY_LIMIT")
# Unpaper
UNPAPER_BINARY = os.getenv("PAPERLESS_UNPAPER_BINARY", "unpaper")
@@ -226,7 +228,7 @@ PASSPHRASE = os.getenv("PAPERLESS_PASSPHRASE")
SHARED_SECRET = os.getenv("PAPERLESS_SHARED_SECRET", "")
#
# TODO: Remove after 1.2
# TODO: Remove after 0.2
#
# This logic is here to address issue #44, wherein we were using inconsistent
# constant names vs. environment variables. If you're using Paperless for the