<filename>chiya/config.py
import logging
import os

from pyaml_env import parse_config


log = logging.getLogger(__name__)


path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "config.yml")
if not os.path.isfile(path):
    log.error("Unable to load config.yml, exiting...")
    raise SystemExit

config = parse_config(path)

<filename>chiya/config.py
import logging
import os

from pyaml_env import parse_config


log = logging.getLogger(__name__)


path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "config.yml")
if not os.path.isfile(path):
    log.error("Unable to load config.yml, exiting...")
    raise SystemExit

config = parse_config(path)
