def real_path(path):
 return os.path.normpath(os.path.normcase(os.path.realpath(path)))

def real_path ( path ) : return os . path . normpath ( os . path . normcase ( os . path . realpath ( path ) ) )
returns: the canonicalized absolute pathname .