1
0
Fork 0
taleweave-ai/taleweave/utils/file.py

12 lines
255 B
Python

from yaml import Loader, dump, load
# this module MUST NOT import any other taleweave modules, since it is used to initialize the logger
def load_yaml(file):
return load(file, Loader=Loader)
def save_yaml(file, data):
return dump(data, file)