jgyasu's picture
Add entire pipeline
060ac52
raw
history blame contribute delete
387 Bytes
"""
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