Skip to content

Instantly share code, notes, and snippets.

@kervel
kervel / kc.py
Last active September 4, 2024 17:52
kc.py
import os
import sys
import yaml
from pathlib import Path
def load_yaml_file(filepath):
with open(filepath, 'r') as file:
return yaml.safe_load(file)
def save_yaml_file(data, filepath):