do not hardcore tmp file path

This commit is contained in:
neingeist 2018-11-11 20:28:03 +01:00
parent 26a8bb2495
commit a84902e540
2 changed files with 4 additions and 3 deletions

View file

@ -4,6 +4,6 @@ import os, random, string
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or \
''.join(random.choices(string.ascii_letters, k=20))
DATA_DIR = os.environ.get('DATA_DIR') or '/home/orange/devel/prolefeeder/tmp'
DATA_DIR = os.environ.get('DATA_DIR') or os.path.join(os.path.dirname(__file__), 'tmp')
MAX_LENGTH = os.environ.get('MAX_LENGTH') or 180
KBITS = os.environ.get('KBITS') or 128