parameters: (self, arch)
return_statement: return dict(kvs)
docstring: Gets the saved environment from a file for a given architecture.
docstring_summary: Gets the saved environment from a file for a given architecture.
docstring_tokens: Gets the saved environment from a file for a given architecture .
function: def _GetEnv(self, arch):
      """Gets the saved environment from a file for a given architecture."""
      # The environment is saved as an "environment block" (see CreateProcess
      # and msvs_emulation for details). We convert to a dict here.
      # Drop last 2 NULs, one for list terminator, one for trailing vs. separator.
      pairs = open(arch).read()[:-2].split('\0')
      kvs = [item.split('=', 1) for item in pairs]
      return dict(kvs)
function_tokens: def _GetEnv ( self , arch ) : # The environment is saved as an "environment block" (see CreateProcess # and msvs_emulation for details). We convert to a dict here. # Drop last 2 NULs, one for list terminator, one for trailing vs. separator. pairs = open ( arch ) . read ( ) [ : - 2 ] . split ( '\0' ) kvs = [ item . split ( '=' , 1 ) for item in pairs ] return dict ( kvs )