Skip to content

Commit 57f1569

Browse files
authored
Merge pull request #3072 from stilley2/FIX/readconf
Allow nipype.cfg in cwd to be read even if ~/.nipype does not exist
2 parents 1725f51 + 097cf75 commit 57f1569

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nipype/utils/config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ def __init__(self, *args, **kwargs):
104104
self._display = None
105105
self._resource_monitor = None
106106

107-
if os.path.exists(config_dir):
108-
self._config.read(
109-
[os.path.join(config_dir, 'nipype.cfg'), 'nipype.cfg'])
107+
self._config.read(
108+
[os.path.join(config_dir, 'nipype.cfg'), 'nipype.cfg'])
110109

111110
for option in CONFIG_DEPRECATIONS:
112111
for section in ['execution', 'logging', 'monitoring']:

0 commit comments

Comments
 (0)