Skip to content

Commit

Permalink
refactor AIIDA_CONFIG_FOLDER
Browse files Browse the repository at this point in the history
  • Loading branch information
khsrali committed Dec 9, 2024
1 parent 82227b2 commit 4b3072d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aiida_pythonjob/config.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 4b3072d

Please sign in to comment.