def target_info_from_filename(filename):
 basename = osp.basename(filename)
 storedir = osp.dirname(osp.abspath(filename))
 target = filename.split('.')[(-1)]
 return (storedir, basename, target)

def target_info_from_filename ( filename ) : basename = osp . basename ( filename ) storedir = osp . dirname ( osp . abspath ( filename ) ) target = filename . split ( '.' ) [ ( - 1 ) ] return ( storedir , basename , target )
transforms /some/path/foo .