def METHOD_NAME(self) -> str:
    """
    The ``config_dir`` for this endpoint.
    If no directory was given during initialization, this will be computed
    based on the current platform and environment.
    """
    if not self._config_dir:
        self._config_dir = self._detect_config_dir()
    return self._config_dir