Bussy-boy/config.py

9 lines
202 B
Python

import yaml
import os
current_dir = os.path.dirname(os.path.realpath(__file__))
config_path = os.path.join(current_dir, "config.yaml")
with open(config_path, "r") as f:
config = yaml.safe_load(f)