We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e81b6 commit f258848Copy full SHA for f258848
nipype/utils/config.py
@@ -17,6 +17,7 @@
17
from warnings import warn
18
19
from ..external import portalocker
20
+from .filemanip import mkdir_p
21
22
# Get home directory in platform-agnostic way
23
homedir = os.path.expanduser('~')
@@ -62,8 +63,7 @@ class NipypeConfig(object):
62
63
def __init__(self, *args, **kwargs):
64
self._config = ConfigParser.ConfigParser()
65
config_dir = os.path.expanduser('~/.nipype')
- if not os.path.exists(config_dir):
66
- os.makedirs(config_dir)
+ mkdir_p(config_dir)
67
old_config_file = os.path.expanduser('~/.nipype.cfg')
68
new_config_file = os.path.join(config_dir, 'nipype.cfg')
69
# To be deprecated in two releases
0 commit comments