def parse_config(config_file):
    if (not os.path.exists(config_file)):
        raise ConfigFileNotFound('{0} not exists'.format(config_file))
    default_config = _set_default_config()
    with io.open(config_file, 'rt', encoding='utf-8') as fd:
        config = yaml.load(fd, Loader=yaml.FullLoader)
    default_config.update(config)
    config = _post_process(default_config)
    return config
def parse_config(config_file):
    if (not os.path.exists(config_file)):
        raise ConfigFileNotFound('{0} not exists'.format(config_file))
    default_config = _set_default_config()
    with io.open(config_file, 'rt', encoding='utf-8') as fd:
        config = yaml.load(fd, Loader=yaml.FullLoader)
    default_config.update(config)
    config = _post_process(default_config)
    return config