def _get_fname(fname):
 if ('-#-' in fname):
  fname = fname.split('-#-')[0]
 else:
  fname = op.basename(fname)
 fname = (' ... %s' % fname)
 return fname

def _get_fname ( fname ) : if ( '-#-' in fname ) : fname = fname . split ( '-#-' ) [ 0 ] else : fname = op . basename ( fname ) fname = ( ' ... %s' % fname ) return fname
get fname without -#- .