Migration commit from heyvince.co to heyvince.ca
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user