[944daf]: / config.py

Download this file

14 lines (11 with data), 316 Bytes

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