diff options
Diffstat (limited to 'scripts/common/queue.py')
-rw-r--r-- | scripts/common/queue.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/common/queue.py b/scripts/common/queue.py index de49802..f67acbb 100644 --- a/scripts/common/queue.py +++ b/scripts/common/queue.py @@ -2,13 +2,14 @@ """ common functions and stuff """ import logging -import os import pickle from litequeue import SQLQueue -QUEUE_DB = os.environ.get("el_QUEUE_db", "litequeue.db") -QUEUE_DIR = os.environ.get("el_QUEUE_dir", "queue") +from . import env + +QUEUE_DB = env("el_QUEUE_db", "litequeue.db") +QUEUE_DIR = env("el_QUEUE_dir", "queue") QUEUE_DB = QUEUE_DIR + "/" + QUEUE_DB |