From a006d57debc887bfbcdbe60dfee89e521dad67ef Mon Sep 17 00:00:00 2001 From: Harpo Date: Thu, 11 Jan 2024 17:03:45 -0800 Subject: [PATCH] Uses config from otto --- otto/config.py | 2 ++ otto/utils.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/otto/config.py b/otto/config.py index 6581b35..ab6b8c6 100644 --- a/otto/config.py +++ b/otto/config.py @@ -1,5 +1,7 @@ from os import environ +PRODUCTION = environ.get('PRODUCTION', False) + LOG_DIR = environ.get('LOG_DIR', 'logs') DATA_DIR = environ.get('DATA_DIR', 'data') diff --git a/otto/utils.py b/otto/utils.py index 959a9e0..c9bb102 100644 --- a/otto/utils.py +++ b/otto/utils.py @@ -1,9 +1,10 @@ import urllib.request -from alfred.config import PRODUCTION from PIL.ImageColor import getcolor from tqdm import tqdm +from otto.config import PRODUCTION + class DownloadProgressBar(tqdm): def update_to(self, b=1, bsize=1, tsize=None):