nipy/nipype — pull request #437 by hjmjohnson (2012-07-31 16:01:28+00:00)
Title: BUG: Process Directories as data sinks

In cases where a DataSink was specified as
a directory with a trailing '/' (i.e. os.path.sep)
the dst resulted in an empty string and triggered
an error:

File
"/tmp/nipype/nipype/interfaces/io.py", line 243, in _get_dst
if dst[0] == os.path.sep:
IndexError: string index out of range

DEBUGING OUTPUTS
HACK: src='/tmp/small_EXP_CACHE/BAW_20120730/WF_subj001/TissueClassify/BABC/'
HACK: path='/tmp/small_EXP_CACHE/BAW_20120730/WF_subj001/TissueClassify/BABC'
HACK: fname=''
HACK: dst=''