File size: 440 Bytes
beb5479
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import yaml
import os
from pathlib import Path

def load_yaml_config(path: str):
    """Load YAML config file safely."""
    with open(path, "r") as f:
        return yaml.safe_load(f)

def ensure_dir(path: str):
    """Create directory if it doesn't exist."""
    Path(path).mkdir(parents=True, exist_ok=True)

def print_banner(title: str):
    print("=" * (len(title) + 8))
    print(f"=== {title} ===")
    print("=" * (len(title) + 8))