craftbeerpi4-pione/core/helper/utils.py

8 lines
148 B
Python
Raw Normal View History

2018-11-01 21:25:42 +01:00
import yaml
def load_config(fname):
with open(fname, 'rt') as f:
data = yaml.load(f)
# TODO: add config validation
return data