blob: 3db7547298dbdd5731321fc58089f51360462d79 [file] [log] [blame]
gstepanovc82391e2015-03-17 15:46:36 +02001import yaml
gstepanov725cc302015-02-09 15:08:06 +02002import os
3
stgleb75c70412015-02-17 02:52:00 +02004
gstepanovc82391e2015-03-17 15:46:36 +02005def parse_config(file_name):
6 with open(file_name) as f:
7 cfg = yaml.load(f.read())
8
9 return cfg
10
11
12cfg_dict = parse_config(os.path.join(os.path.dirname(__file__), 'config.yaml'))
13basedir = cfg_dict['paths']['basedir']
14TEST_PATH = cfg_dict['paths']['TEST_PATH']
15SQLALCHEMY_MIGRATE_REPO = cfg_dict['paths']['SQLALCHEMY_MIGRATE_REPO']
16DATABASE_URI = cfg_dict['paths']['DATABASE_URI']
17CHARTS_IMG_PATH = cfg_dict['paths']['CHARTS_IMG_PATH']