def posixpath_normpath(pathname):
 backslash = '\\'
 pathname2 = (os.path.normpath(pathname) or '.')
 if (backslash in pathname2):
  pathname2 = pathname2.replace(backslash, '/')
 return pathname2

def posixpath_normpath ( pathname ) : backslash = '\\' pathname2 = ( os . path . normpath ( pathname ) or '.' ) if ( backslash in pathname2 ) : pathname2 = pathname2 . replace ( backslash , '/' ) return pathname2
convert path into posix path: * normalize path * replace backslash with slash .