'Return zappa_settings path as JSON or YAML (or TOML), as appropriate.'

def get_json_or_yaml_settings(self, settings_name=u'zappa_settings'):

    zs_json = (settings_name + u'.json')
    zs_yaml = (settings_name + u'.yml')
    zs_toml = (settings_name + u'.toml')
    if ((not os.path.isfile(zs_json)) and (not os.path.isfile(zs_yaml)) and (not os.path.isfile(zs_toml))):
        raise ClickException(u'Please    configure    a    zappa_settings    file    or    call    `zappa    init`.')
    if os.path.isfile(zs_json):
        settings_file = zs_json
    elif os.path.isfile(zs_toml):
        settings_file = zs_toml
    else:
        settings_file = zs_yaml
    return settings_file
