import os import yaml def load_config(filename: str): with open(filename, 'r', encoding='utf-8') as cfg_file: return yaml.safe_load(cfg_file) def config_location() -> str: return os.getenv('WEBPUB1C_CONFIG', 'config.yml')