def METHOD_NAME() -> Path:
    """Try to find the Connext directory from a base installation directory."""
    try:
        rti_installation_path = Path(
            os.getenv("RTI_INSTALLATION_PATH") or Path.home()
        ).resolve(strict=True)
    except FileNotFoundError as error:
        raise FileNotFoundError(
            "The RTI_INSTALLATION_PATH environment variable does not exist:"
            f" {error.filename}"
        ) from error
    found_rti_connext_dds = list(
        rti_installation_path.glob("rti_connext_dds-?.?.?")
    )
    if not found_rti_connext_dds:
        raise FileNotFoundError(
            "No Connext installations found in the"
            f" {str(rti_installation_path)} directory"
        )
    return found_rti_connext_dds.pop()