mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
#44: Harmonise environment variables with constant names
This commit is contained in:
parent
26c3781350
commit
857c7ac654
@ -235,8 +235,10 @@ def deprecated(before, after):
|
||||
)
|
||||
|
||||
if not CONVERT_BINARY:
|
||||
deprecated("PAPERLESS_CONVERT", "PAPERLESS_CONVERT_BINARY")
|
||||
CONVERT_BINARY = os.getenv("PAPERLESS_CONVERT", "convert")
|
||||
CONVERT_BINARY = "convert"
|
||||
if os.getenv("PAPERLESS_CONVERT"):
|
||||
deprecated("PAPERLESS_CONVERT", "PAPERLESS_CONVERT_BINARY")
|
||||
CONVERT_BINARY = os.getenv("PAPERLESS_CONVERT", CONVERT_BINARY)
|
||||
|
||||
if not CONSUMPTION_DIR and os.getenv("PAPERLESS_CONSUME"):
|
||||
deprecated("PAPERLESS_CONSUME", "PAPERLESS_CONSUMPTION_DIR")
|
||||
|
Loading…
x
Reference in New Issue
Block a user