Migration commit from heyvince.co to heyvince.ca

This commit is contained in:
vgoineau
2024-05-03 09:24:48 -04:00
commit 2c898da04f
24 changed files with 679 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import yaml
def get_config_from_yml(filepath="dft_project.yml"):
try:
with open(filepath, 'r') as file:
data = yaml.safe_load(file)
except Exception as e:
return e
else:
return data
def load_config():
data = get_config_from_yml()
return data
config = load_config()