consolidate paths in config.py

This commit is contained in:
Min RK
2018-07-31 12:02:47 +02:00
parent 75ffa91c85
commit 2760e1adcd
4 changed files with 18 additions and 15 deletions

View File

@@ -11,8 +11,7 @@ FIXME: A strong feeling that JSON Schema should be involved somehow.
import os
import yaml
INSTALL_PREFIX = os.environ.get('TLJH_INSTALL_PREFIX', '/opt/tljh')
CONFIG_FILE = os.path.join(INSTALL_PREFIX, 'config.yaml')
from tljh.config import CONFIG_FILE
# Default configuration for tljh
# User provided config is merged into this