diff --git a/src/aiida/manage/configuration/__init__.py b/src/aiida/manage/configuration/__init__.py index 9907bb6a7..94e26ed30 100644 --- a/src/aiida/manage/configuration/__init__.py +++ b/src/aiida/manage/configuration/__init__.py @@ -11,7 +11,6 @@ from __future__ import annotations - # AUTO-GENERATED # fmt: off from .migrations import * @@ -67,9 +66,10 @@ def get_config_path(): """Returns path to aiida configuration file.""" - from .settings import DEFAULT_CONFIG_FILE_NAME from aiida.manage.configuration.settings import AiiDAConfigDir + from .settings import DEFAULT_CONFIG_FILE_NAME + return os.path.join(AiiDAConfigDir.get_configuration_directory(), DEFAULT_CONFIG_FILE_NAME)