Skip to content

Commit 3e49109

Browse files
committed
Allow nipype.cfg in cwd to be read even if ~/.nipype does not exist
Fixes a bug where the nipype.cfg in the current directory would not be read if the folder ~/.nipype does not exist.
1 parent 0fa28d5 commit 3e49109

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)