def pathlist_to_str(paths, escape_backslashes=True):
 path = u' and '.join(paths)
 if (on_win and escape_backslashes):
  path = re.sub(u'(?<!\\\\)\\\\(?!\\\\)', u'\\\\\\\\', path)
 else:
  path = path.replace(u'\\\\', u'\\')
 return path

def pathlist_to_str ( paths , escape_backslashes = True ) : path = u' and ' . join ( paths ) if ( on_win and escape_backslashes ) : path = re . sub ( u'(?<!\\\\)\\\\(?!\\\\)' , u'\\\\\\\\' , path ) else : path = path . replace ( u'\\\\' , u'\\' ) return path
format a path list .