INNER CODE UNIT · Python

_detect_default_config_file

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

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


def _get_io_string(literal_map, verbose=False):
    """
    :param flytekit.models.literals.LiteralMap literal_map:
    :param bool verbose:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…