todoist_interface/todoist_interface/settings.py

8 lines
164 B
Python
Raw Normal View History

2021-11-06 19:06:34 +01:00
import yaml
2021-11-06 19:34:33 +01:00
def read_config(config_path):
2023-04-06 14:45:33 +02:00
with open(config_path, "r") as ymlfile:
2021-11-06 19:06:34 +01:00
cfg = yaml.load(ymlfile, Loader=yaml.FullLoader)
return cfg