Skip to content

Commit b5cb2aa

Browse files
authored
Merge pull request #3073 from stilley2/ENH/nipypeconfdir
ENH: Allow Nipype configuration directory to be specified with NIPYPE_CONFIG_DIR environment variable
2 parents c47f889 + 2026787 commit b5cb2aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/utils/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(self, *args, **kwargs):
9191
self._config = configparser.ConfigParser()
9292
self._cwd = None
9393

94-
config_dir = os.path.expanduser("~/.nipype")
94+
config_dir = os.path.expanduser(os.getenv("NIPYPE_CONFIG_DIR", default="~/.nipype"))
9595
self.data_file = os.path.join(config_dir, "nipype.json")
9696

9797
self.set_default_config()

0 commit comments

Comments
 (0)