def fixpath(path):
 norm = (osp.normcase if (os.name == 'nt') else osp.normpath)
 return norm(osp.abspath(osp.realpath(path)))

def fixpath ( path ) : norm = ( osp . normcase if ( os . name == 'nt' ) else osp . normpath ) return norm ( osp . abspath ( osp . realpath ( path ) ) )
normalize path fixing case .