config: use better default paths
This commit is contained in:
parent
6348b0f6d9
commit
c63d66a877
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ 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 os.path.join(os.path.dirname(__file__), 'data')
|
||||
TMP_DIR = os.environ.get('DATA_DIR') or os.path.join(os.path.dirname(__file__), 'tmp')
|
||||
DATA_DIR = os.environ.get('DATA_DIR') or '/var/tmp/prolefeeder-test-data'
|
||||
TMP_DIR = os.environ.get('TMP_DIR') or '/var/tmp'
|
||||
MAX_LENGTH = os.environ.get('MAX_LENGTH') or 180
|
||||
KBITS = os.environ.get('KBITS') or 128
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue