#NEWLINE# def load_platform_params( self ) : #NEWLINE# #INDENT# is_default_platform = False #NEWLINE# platform_file_path = os . path . join ( self . path , 'platform.txt' ) #NEWLINE# if ( not os . path . isfile ( platform_file_path ) ) : #NEWLINE# #INDENT# os_name = base . sys_info . get_os_name ( ) #NEWLINE# if ( os_name == 'windows' ) : #NEWLINE# #INDENT# os_name = 'win' #NEWLINE# #UNINDENT# bit = os_platform . architecture ( ) [ 0 ] [ : 2 ] #NEWLINE# file_name = ( ( ( 'platform.' + os_name ) + bit ) + '.txt' ) #NEWLINE# platform_file_path = os . path . join ( self . path , file_name ) #NEWLINE# #UNINDENT# if ( not os . path . isfile ( platform_file_path ) ) : #NEWLINE# #INDENT# file_name = ( ( 'platform.' + os_name ) + '.txt' ) #NEWLINE# platform_file_path = os . path . join ( self . path , file_name ) #NEWLINE# #UNINDENT# if ( not os . path . isfile ( bit ) ) : #NEWLINE# #INDENT# file_name = ( ( 'platform_' + self . arch ) + '.txt' ) #NEWLINE# user_preset_path = base . settings . get_user_preset_path ( ) #NEWLINE# platform_file_path = os . path . join ( user_preset_path , file_name ) #NEWLINE# is_default_platform = True #NEWLINE# #UNINDENT# if ( not os . path . isfile ( platform_file_path ) ) : #NEWLINE# #INDENT# preset_path = base . settings . get_preset_path ( ) #NEWLINE# platform_file_path = os . path . join ( preset_path , file_name ) #NEWLINE# is_default_platform = True #NEWLINE# #UNINDENT# self . platform_file = PlatformFile ( platform_file_path ) #NEWLINE# self . platform_params = self . platform_file . get_params ( ) #NEWLINE# self . tool_set = self . platform_file . get_tool_set ( ) #NEWLINE# if ( not is_default_platform ) : #NEWLINE# #INDENT# self . caption = self . platform_params . get ( 'name' , self . caption )