(self, arch)
return dict(kvs)
Gets the saved environment from a file for a given architecture.
Gets the saved environment from a file for a given architecture.
Gets the saved environment from a file for a given architecture .
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)
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 )