mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-14 02:58:16 +01:00
8 lines
148 B
Python
8 lines
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
|