#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# if ( major >= 2 ) : #NEWLINE# #INDENT# _plat = sys . platform . lower ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# _plat = string . lower ( sys . platform ) #NEWLINE# #UNINDENT# self . is_windows = ( _plat == WIN_32 ) #NEWLINE# self . is_cygwin = ( _plat == CYGWIN ) #NEWLINE# x64 = [ 'AMD64' , 'x86_64' , 'IA64' ] #NEWLINE# if ( major >= 2 ) : #NEWLINE# #INDENT# self . is_linux = _plat . startswith ( LINUX ) #NEWLINE# self . is_64bits = ( python . is_64bits or ( os . environ . get ( 'PROCESSOR_ARCHITECTURE' , '' ) in x64 ) or ( os . environ . get ( 'PROCESSOR_ARCHITEW6432' , '' ) in x64 ) or ( os . environ . get ( 'CPU' , '' ) in x64 ) or ( os . environ . get ( 'MACHTYPE' , '' ) . split ( '-' ) [ 0 ] in _plat ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . is_linux = ( string . find ( _plat , LINUX ) == 0 ) #NEWLINE# self . is_64bits = ( python . is_64bits or ( os . environ . get ( 'PROCESSOR_ARCHITECTURE' , '' ) in x64 ) or ( os . environ . get ( 'PROCESSOR_ARCHITEW6432' , '' ) in x64 ) or ( os . environ . get ( 'CPU' , '' ) in x64 ) or ( string . split ( os . environ . get ( 'MACHTYPE' , '' ) , '-' ) [ 0 ] in x64 ) ) #NEWLINE# #UNINDENT# self . is_linux2 = ( _plat == LINUX2 ) #NEWLINE# self . is_linux3 = ( _plat == LINUX3 ) #NEWLINE# self . is_mac_os = ( _plat == MAC_OS_X ) #NEWLINE# self . is_32bits = ( not self . is_64bits )