File size: 387 Bytes
060ac52 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
"""
This file loads config from config.yaml
"""
import yaml
def load_config(path):
"""
Function to load config from config.yaml
"""
try:
with open(path, "r") as file:
config = yaml.safe_load(file)
return config
except FileNotFoundError:
raise FileNotFoundError("Config file not found")
except Exception as e:
raise e
|