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 96ad5e7 commit f2bfd4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aiida_workgraph/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import json
from aiida.manage.configuration.settings import AIIDA_CONFIG_FOLDER
from aiida.manage.configuration.settings import AiiDAConfigDir

WORKGRAPH_EXTRA_KEY = "_workgraph"
WORKGRAPH_SHORT_EXTRA_KEY = "_workgraph_short"
Expand All @@ -11,7 +11,7 @@

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

0 comments on commit f2bfd4c

Please sign in to comment.