def convert_to_native_paths(lst):
 newlst = []
 for (i, rv) in enumerate(lst):
  rv = os.path.join(*rv.split('/'))
  if (sys.platform == 'win32'):
   pos = rv.find(':')
   if (pos != (-1)):
    if (rv[(pos + 1)] != '\\'):
     rv = ((rv[:(pos + 1)] + '\\') + rv[(pos + 1):])
  newlst.append(sys_normcase(rv))
 return newlst

def convert_to_native_paths ( lst ) : newlst = [ ] for ( i , rv ) in enumerate ( lst ) : rv = os . path . join ( * rv . split ( '/' ) ) if ( sys . platform == 'win32' ) : pos = rv . find ( ':' ) if ( pos != ( - 1 ) ) : if ( rv [ ( pos + 1 ) ] != '\\' ) : rv = ( ( rv [ : ( pos + 1 ) ] + '\\' ) + rv [ ( pos + 1 ) : ] ) newlst . append ( sys_normcase ( rv ) ) return newlst
converts a list of / separated paths into a list of native paths and converts to lowercase if the system is case insensitive .