From c63d66a877cc85dc6aeaff647d656acf1ce5109f Mon Sep 17 00:00:00 2001 From: neingeist Date: Mon, 12 Nov 2018 19:38:02 +0100 Subject: [PATCH] config: use better default paths --- config.py.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py.example b/config.py.example index a55ad6d..9391f8c 100644 --- a/config.py.example +++ b/config.py.example @@ -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