parameters: (link)
return_statement: return realpath
docstring: Return the real path of the link file
      @param link: path of link file
      @return: string
docstring_summary: Return the real path of the link file
      @param link: path of link file
      @return: string
docstring_tokens: Return the real path of the link file @param link : path of link file @return : string
function: def ResolveRealPath(link):
      """Return the real path of the link file
      @param link: path of link file
      @return: string
  
      """
      assert IsLink(link), "ResolveRealPath expects a link file!"
      realpath = link
      if WIN and win32client is not None:
          shell = win32client.Dispatch("WScript.Shell")
          shortcut = shell.CreateShortCut(link)
          realpath = shortcut.Targetpath
      else:
          realpath = os.path.realpath(link)
      return realpath
function_tokens: def ResolveRealPath ( link ) : assert IsLink ( link ) , "ResolveRealPath expects a link file!" realpath = link if WIN and win32client is not None : shell = win32client . Dispatch ( "WScript.Shell" ) shortcut = shell . CreateShortCut ( link ) realpath = shortcut . Targetpath else : realpath = os . path . realpath ( link ) return realpath