INNER CODE UNIT · Python

_get_config_file_path

flyteorg/flytekit · flytekit/clis/flyte_cli/main.py:83

def _get_config_file_path():
    home = _get_user_filepath_home()
    return os.path.join(home, _default_config_file_dir, _default_config_file_name)


def _detect_default_config_file():
    config_file = _get_config_file_path()
    if _get_user_filepath_home() and os.path.exists(config_file):
        click.secho("Using default config file at {}".format(_tt(config_file)), fg="blue")
        return config_file
    else:
        click.secho(
            """Config file not found at default location, relying on environment variables instead.
                        To setup your config file run 'flyte-cli setup-config'""",
            fg="blue",
        )
    return None

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…