This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
md-pdf/md_pdf/config/read.py

10 lines
190 B
Python
Raw Normal View History

2017-03-29 18:26:54 +01:00
import yaml
2017-03-29 18:50:12 +01:00
from dotmap import DotMap
2017-03-29 18:26:54 +01:00
import os
from md_pdf.consts import CONFIG_FILE
def load_config():
with open(os.path.join(CONFIG_FILE)) as f:
2017-03-29 18:50:12 +01:00
return DotMap(yaml.load(f))