parameters: (self, source, dest)
docstring: Copies the |source| Info.plist to the destination directory |dest|.
docstring_summary: Copies the |source| Info.plist to the destination directory |dest|.
docstring_tokens: Copies the |source| Info . plist to the destination directory |dest| .
function: def ExecCopyInfoPlist(self, source, dest):
      """Copies the |source| Info.plist to the destination directory |dest|."""
      # Read the source Info.plist into memory.
      fd = open(source, 'r')
      lines = fd.read()
      fd.close()
  
      # Go through all the environment variables and replace them as variables in
      # the file.
      for key in os.environ:
        if key.startswith('_'):
          continue
        evar = '${%s}' % key
        lines = string.replace(lines, evar, os.environ[key])
  
      # Write out the file with variables replaced.
      fd = open(dest, 'w')
      fd.write(lines)
      fd.close()
  
      # Now write out PkgInfo file now that the Info.plist file has been
      # "compiled".
      self._WritePkgInfo(dest)
function_tokens: def ExecCopyInfoPlist ( self , source , dest ) : # Read the source Info.plist into memory. fd = open ( source , 'r' ) lines = fd . read ( ) fd . close ( ) # Go through all the environment variables and replace them as variables in # the file. for key in os . environ : if key . startswith ( '_' ) : continue evar = '${%s}' % key lines = string . replace ( lines , evar , os . environ [ key ] ) # Write out the file with variables replaced. fd = open ( dest , 'w' ) fd . write ( lines ) fd . close ( ) # Now write out PkgInfo file now that the Info.plist file has been # "compiled". self . _WritePkgInfo ( dest )