2024-05-25 20:18:40 +00:00
|
|
|
from yaml import Loader, dump, load
|
|
|
|
|
2024-06-16 22:52:15 +00:00
|
|
|
# this module MUST NOT import any other taleweave modules, since it is used to initialize the logger
|
|
|
|
|
2024-05-25 20:18:40 +00:00
|
|
|
|
|
|
|
def load_yaml(file):
|
|
|
|
return load(file, Loader=Loader)
|
|
|
|
|
|
|
|
|
|
|
|
def save_yaml(file, data):
|
|
|
|
return dump(data, file)
|