Files
videobeaux/utils/load_config.py
2024-06-21 00:46:43 -04:00

8 lines
193 B
Python

import yaml
from pathlib import Path
config_file = Path(__file__).parent.parent / "config.yaml"
def load_config():
with open(config_file, 'r') as file:
return yaml.safe_load(file)