From 4b3072d4cc737ef925dcd06398878474ea63c98b Mon Sep 17 00:00:00 2001 From: Ali Date: Mon, 9 Dec 2024 14:14:28 +0100 Subject: [PATCH] refactor AIIDA_CONFIG_FOLDER --- src/aiida_pythonjob/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aiida_pythonjob/config.py b/src/aiida_pythonjob/config.py index 37e9ee6..899eed5 100644 --- a/src/aiida_pythonjob/config.py +++ b/src/aiida_pythonjob/config.py @@ -1,11 +1,11 @@ import json -from aiida.manage.configuration.settings import AIIDA_CONFIG_FOLDER +from aiida.manage.configuration.settings import AiiDAConfigDir def load_config() -> dict: """Load the configuration from the config file.""" - config_file_path = AIIDA_CONFIG_FOLDER / "pythonjob.json" + config_file_path = AiiDAConfigDir.get() / "pythonjob.json" try: with config_file_path.open("r") as f: config = json.load(f)