a b/config.py
1
#!/usr/bin/env python
2
3
"""
4
Simple module wrapper to load settings file in order
5
to have it available in all modules.
6
"""
7
import yaml
8
import os
9
10
11
settings_filename = os.path.join(os.path.dirname(__file__), 'settings.yaml')
12
#settings_filename = '../'
13
with open(settings_filename, "r") as f:
14
    settings = yaml.load(f)