Files
SUST/sustApp/config_loader.py
2026-06-25 11:19:08 +02:00

9 lines
322 B
Python

import yaml
import os
def load_config(config_path=None):
if config_path is None:
# Resolve path relative to this module's location
config_path = os.path.join(os.path.dirname(__file__), "config.yaml")
with open(config_path, encoding='utf8') as f:
return yaml.load(f, Loader=yaml.FullLoader)