mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-12 18:27:47 +01:00
8 lines
No EOL
148 B
Python
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 |