13 lines
216 B
Python
13 lines
216 B
Python
import pathlib
|
|
import yaml
|
|
|
|
_CONFIG_PATH = pathlib.Path(__file__).parent.parent / "config.yml"
|
|
|
|
|
|
def load_config() -> dict:
|
|
with open(_CONFIG_PATH) as f:
|
|
return yaml.safe_load(f)
|
|
|
|
|
|
config = load_config()
|