parameters: (self, engine_user_settings_options_file)
return_statement: return override_settings_map
docstring: Get the two possible bootstrap overrides (bootstrap_tool_param, bootstrap_third_party_override) from a user_settings.option file
  
          :param engine_user_settings_options_file:   The absolute path of the user_settings.options file
          :return: tuple of (bootstrap_tool_param, bootstrap_third_party_override) if set
docstring_summary: Get the two possible bootstrap overrides (bootstrap_tool_param, bootstrap_third_party_override) from a user_settings.option file
docstring_tokens: Get the two possible bootstrap overrides ( bootstrap_tool_param bootstrap_third_party_override ) from a user_settings . option file
function: def read_bootstrap_overrides_from_settings_file(self, engine_user_settings_options_file):
          """
          Get the two possible bootstrap overrides (bootstrap_tool_param, bootstrap_third_party_override) from a user_settings.option file
  
          :param engine_user_settings_options_file:   The absolute path of the user_settings.options file
          :return: tuple of (bootstrap_tool_param, bootstrap_third_party_override) if set
          """
          if not os.path.exists(engine_user_settings_options_file):
              raise Errors.WafError(
                  "Unable to locate the engine's settings file. Make sure that the engine at '{} 'is properly configured first".format(
                      engine_user_settings_options_file))
  
          engine_user_settings_reader = configparser.ConfigParser()
          engine_user_settings_reader.read(engine_user_settings_options_file)
  
          override_settings_map = {}
  
          override_key_map = {'Misc Options': ['bootstrap_tool_param',
                                               'bootstrap_third_party_override'],
                              'Platforms': ['enable_{}'.format(platform_name) for platform_name in list(self.platform_settings_map.keys())]}
  
          for source_key_section, source_keys in list(override_key_map.items()):
              for source_key in source_keys:
                  try:
                      source_value = engine_user_settings_reader.get(source_key_section, source_key)
                  except configparser.NoSectionError as e:
                      raise Errors.WafError("The engine's user_settings.options as '{}' file is corrupt: {}".format(engine_user_settings_options_file,e))
                  except configparser.NoOptionError:
                      continue
                  override_settings_map[source_key] = source_value
  
          return override_settings_map
function_tokens: def read_bootstrap_overrides_from_settings_file ( self , engine_user_settings_options_file ) : if not os . path . exists ( engine_user_settings_options_file ) : raise Errors . WafError ( "Unable to locate the engine's settings file. Make sure that the engine at '{} 'is properly configured first" . format ( engine_user_settings_options_file ) ) engine_user_settings_reader = configparser . ConfigParser ( ) engine_user_settings_reader . read ( engine_user_settings_options_file ) override_settings_map = { } override_key_map = { 'Misc Options' : [ 'bootstrap_tool_param' , 'bootstrap_third_party_override' ] , 'Platforms' : [ 'enable_{}' . format ( platform_name ) for platform_name in list ( self . platform_settings_map . keys ( ) ) ] } for source_key_section , source_keys in list ( override_key_map . items ( ) ) : for source_key in source_keys : try : source_value = engine_user_settings_reader . get ( source_key_section , source_key ) except configparser . NoSectionError as e : raise Errors . WafError ( "The engine's user_settings.options as '{}' file is corrupt: {}" . format ( engine_user_settings_options_file , e ) ) except configparser . NoOptionError : continue override_settings_map [ source_key ] = source_value return override_settings_map