Skip to content

Commit 0704f7e

Browse files
committed
Allow nipype configuration directory to be specified with NIPYPECONFDIR
1 parent 0fa28d5 commit 0704f7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/utils/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ def __init__(self, *args, **kwargs):
9797
self._config = configparser.ConfigParser()
9898
self._cwd = None
9999

100-
config_dir = os.path.expanduser('~/.nipype')
100+
config_dir = os.path.expanduser(
101+
os.getenv('NIPYPECONFDIR',
102+
default='~/.nipype'))
101103
self.data_file = os.path.join(config_dir, 'nipype.json')
102104

103105
self.set_default_config()

0 commit comments

Comments
 (0)