Make raw config file data accessible to plugins

This commit is contained in:
Raphael Michel
2017-10-29 16:11:54 +01:00
parent d1971cdcae
commit 96b57994d9

View File

@@ -19,6 +19,7 @@ else:
config.read(['/etc/pretix/pretix.cfg', os.path.expanduser('~/.pretix.cfg'), 'pretix.cfg'],
encoding='utf-8')
CONFIG_FILE = config
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DATA_DIR = config.get('pretix', 'datadir', fallback=os.environ.get('DATA_DIR', 'data'))
LOG_DIR = os.path.join(DATA_DIR, 'logs')