config.py 200 Bytes
Newer Older
1
from sys import argv
2 3 4
from yaml import load, dump

class Config(object):
5
    CONFIG_LOCATION = argv[1] # "config.yaml"
6
    def __init__(self):
7
        self.data = load(open(self.CONFIG_LOCATION, 'r'))