Skip to content

Commit

Permalink
Uses config from otto
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Jan 12, 2024
1 parent bc4ad24 commit a006d57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions otto/config.py
Original file line number Diff line number Diff line change
@@ -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')

Expand Down
3 changes: 2 additions & 1 deletion otto/utils.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down

0 comments on commit a006d57

Please sign in to comment.