def SetPlatformArchContext():
 CONFIG.AddContext(('Platform:%s' % platform.system().title()))
 machine = platform.uname()[4]
 if (machine in ['x86_64', 'AMD64', 'i686']):
  if (platform.architecture()[0] == '32bit'):
   arch = 'i386'
  else:
   arch = 'amd64'
 elif (machine == 'x86'):
  arch = 'i386'
 else:
  arch = machine
 CONFIG.AddContext(('Arch:%s' % arch))

def SetPlatformArchContext ( ) : CONFIG . AddContext ( ( 'Platform:%s' % platform . system ( ) . title ( ) ) ) machine = platform . uname ( ) [ 4 ] if ( machine in [ 'x86_64' , 'AMD64' , 'i686' ] ) : if ( platform . architecture ( ) [ 0 ] == '32bit' ) : arch = 'i386' else : arch = 'amd64' elif ( machine == 'x86' ) : arch = 'i386' else : arch = machine CONFIG . AddContext ( ( 'Arch:%s' % arch ) )
add the running contexts to the config system .