def get_dotenv_path(template_path):
    """Return the .env path for the given template path."""
    if template_path.suffix == ".example":
        return template_path.with_suffix("")

    return template_path.with_name(".env")