Skip to content

Commit

Permalink
review applied
Browse files Browse the repository at this point in the history
  • Loading branch information
khsrali committed Dec 10, 2024
1 parent 4b3072d commit cef3eb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/aiida_pythonjob/config.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import json

from aiida.manage.configuration.settings import AiiDAConfigDir
from aiida.manage import get_config


def load_config() -> dict:
"""Load the configuration from the config file."""
config_file_path = AiiDAConfigDir.get() / "pythonjob.json"
config = get_config()
config_file_path = config.dirpath / "pythonjob.json"
try:
with config_file_path.open("r") as f:
config = json.load(f)
Expand Down

0 comments on commit cef3eb4

Please sign in to comment.