Spaces:
Runtime error
Runtime error
File size: 344 Bytes
85456ff |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import yaml
def config_loader(filepath):
data = None
with open(filepath, "r") as yamlfile:
data = yaml.load(yamlfile, Loader=yaml.FullLoader)
yamlfile.close()
return data
def config_saver(data, filepath):
with open(filepath, 'w') as yamlfile:
data1 = yaml.dump(data, yamlfile)
yamlfile.close()
|