def normalizePath(filepath):
 retVal = filepath
 if retVal:
  retVal = retVal.strip('\r\n')
  retVal = (ntpath.normpath(retVal) if isWindowsDriveLetterPath(retVal) else posixpath.normpath(retVal))
 return retVal

def normalizePath ( filepath ) : retVal = filepath if retVal : retVal = retVal . strip ( '\r\n' ) retVal = ( ntpath . normpath ( retVal ) if isWindowsDriveLetterPath ( retVal ) else posixpath . normpath ( retVal ) ) return retVal
returns normalized string representation of a given filepath .