def METHOD_NAME(file: str) -> str:
    """Adds .exe to a path if an executable exists.
    :param file: File name to add .exe to if it exists.
    :return: The new path of the file.
    """
    if os.path.exists(file + ".exe"):
        return file + ".exe"
    return file