Skip to content

Commit

Permalink
with global fix
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Nov 14, 2024
1 parent ec3ebec commit 2663d7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/aiida/manage/configuration/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
# DAEMON_DIR: pathlib.Path = AIIDA_CONFIG_FOLDER / DEFAULT_DAEMON_DIR_NAME
# DAEMON_LOG_DIR: pathlib.Path = DAEMON_DIR / DEFAULT_DAEMON_LOG_DIR_NAME
# ACCESS_CONTROL_DIR: pathlib.Path = AIIDA_CONFIG_FOLDER / DEFAULT_ACCESS_CONTROL_DIR_NAME
#

@final
class AiiDAConfigPathResolver:
Expand Down Expand Up @@ -154,7 +153,10 @@ def set_configuration_directory(aiida_config_folder: pathlib.Path | None = None)
is returned by ``get_configuration_directory``. If the directory does not exist yet, it is created, together with
all its subdirectories.
"""
create_instance_directories(aiida_config_folder or get_configuration_directory())
global AIIDA_CONFIG_FOLDER
AIIDA_CONFIG_FOLDER = aiida_config_folder or get_configuration_directory()

create_instance_directories(AIIDA_CONFIG_FOLDER)


# Initialize the configuration directory settings
Expand Down

0 comments on commit 2663d7e

Please sign in to comment.