'''
Created on 20 Apr 2010

@author: Chris Filo Gorgolewski
'''
import ConfigParser, os
from io import StringIO

default_cfg = StringIO("""
[logging]
workflow_level = INFO
node_level = INFO
filemanip_level = INFO

[execution]
stop_on_first_crash = false
hash_method = content
""")

config = ConfigParser.ConfigParser()
config.readfp(default_cfg)
config.read(['nipype.cfg', os.path.expanduser('~/.nipype.cfg')])


'''
Created on 20 Apr 2010

@author: Chris Filo Gorgolewski
'''
import ConfigParser, os
from StringIO import StringIO

default_cfg = StringIO("""
[logging]
workflow_level = INFO
node_level = INFO
filemanip_level = INFO

[execution]
stop_on_first_crash = false
hash_method = content
""")

config = ConfigParser.ConfigParser()
config.readfp(default_cfg)
config.read(['nipype.cfg', os.path.expanduser('~/.nipype.cfg')])


Use StringIO.StringIO instead of the io.StringIO.
Use StringIO.StringIO instead of the io.StringIO.

The io library is new to Python 2.6, we still support 2.5.  And the doc for
the io library encourages us to continue to use StringIO.StringIO:

http://docs.python.org/whatsnew/2.6.html#pep-3116-new-i-o-library

git-svn-id: 24f545668198cdd163a527378499f2123e59bf9f@1333 ead46cd0-7350-4e37-8683-fc4c6f79bf00
