mirror of
https://github.com/ChronosX88/medved.git
synced 2024-10-18 08:00:59 +00:00
15 lines
286 B
Python
15 lines
286 B
Python
#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import yaml
|
|
|
|
class Config(object):
|
|
def __init__(self):
|
|
with open('data/config.yaml') as config_file:
|
|
self.config = yaml.load(config_file)
|
|
|
|
def get(self, key, defval=None):
|
|
return self.config.get(key, defval)
|
|
|
|
|
|
cnf = Config() |