import yaml
import os


def load_config(env="dev"):
    """
    Returns python config
    :param env: specify environment. i.e. prod
    :return:
    """
    try:
        with open(os.path.join(os.getcwd(), "", "config.yaml")) as config_file:
            config = yaml.safe_load(config_file)[env]
        return config
    except KeyError:
        return KeyError(f"No such environment - {env} in config file.")
fb34f93f2dbd5fa86126b7bbe553d1011b64efd7
<mask token>

<mask token>


def load_config(env='dev'):
    """
    Returns python config
    :param env: specify environment. i.e. prod
    :return:
    """
    try:
        with open(os.path.join(os.getcwd(), '', 'config.yaml')) as config_file:
            config = yaml.safe_load(config_file)[env]
        return config
    except KeyError:
        return KeyError(f'No such environment - {env} in config file.')

import yaml
import os


def load_config(env='dev'):
    """
    Returns python config
    :param env: specify environment. i.e. prod
    :return:
    """
    try:
        with open(os.path.join(os.getcwd(), '', 'config.yaml')) as config_file:
            config = yaml.safe_load(config_file)[env]
        return config
    except KeyError:
        return KeyError(f'No such environment - {env} in config file.')

import yaml
import os


def load_config(env="dev"):
    """
    Returns python config
    :param env: specify environment. i.e. prod
    :return:
    """
    try:
        with open(os.path.join(os.getcwd(), "", "config.yaml")) as config_file:
            config = yaml.safe_load(config_file)[env]
        return config
    except KeyError:
        return KeyError(f"No such environment - {env} in config file.")