craftbeerpi4-pione/core/helper/utils.py
2018-11-01 21:25:42 +01:00

8 lines
No EOL
148 B
Python

import yaml
def load_config(fname):
with open(fname, 'rt') as f:
data = yaml.load(f)
# TODO: add config validation
return data