from pathlib import Path


def get_live_toml_file(toml_file: Path) -> Path:
    """
    Check to see if the TOML file path exists already
    Parameters
    ----------
    toml_file: Path
        Pathlib Path holding the user provided path to the toml file.

    Returns
    -------
    Path
        path to the live toml file if it exists, else the normal TOML file path
    """
    live_file = Path(str(toml_file) + "_live")
    if live_file.exists():
        return live_file
    return toml_file