def load_current_file():
print("Loading current file: {}".format(current_file))
global current_docs, current_doc
try:
with open(current_file, "r", encoding="UTF-8") as f:
current_docs = list(yaml.load_all(f))
current_doc = len(current_docs)
except FileNotFoundError:
pass
except yaml.YAMLError:
print("Failed to parse edit file")
评论列表
文章目录