parameters: (self, path, config, attrs=None, tools=None)
docstring: Adds a configuration to a file.
  
      Args:
        path: Relative path to the file.
        config: Name of configuration to add.
        attrs: Dict of configuration attributes; may be None.
        tools: List of tools (strings or Tool objects); may be None.
  
      Raises:
        ValueError: Relative path does not match any file added via AddFiles().
docstring_summary: Adds a configuration to a file.
docstring_tokens: Adds a configuration to a file .
function: def AddFileConfig(self, path, config, attrs=None, tools=None):
      """Adds a configuration to a file.
  
      Args:
        path: Relative path to the file.
        config: Name of configuration to add.
        attrs: Dict of configuration attributes; may be None.
        tools: List of tools (strings or Tool objects); may be None.
  
      Raises:
        ValueError: Relative path does not match any file added via AddFiles().
      """
      # Find the file node with the right relative path
      parent = self.files_dict.get(path)
      if not parent:
        raise ValueError('AddFileConfig: file "%s" not in project.' % path)
  
      # Add the config to the file node
      spec = self._GetSpecForConfiguration('FileConfiguration', config, attrs,
                                           tools)
      parent.append(spec)
function_tokens: def AddFileConfig ( self , path , config , attrs = None , tools = None ) : # Find the file node with the right relative path parent = self . files_dict . get ( path ) if not parent : raise ValueError ( 'AddFileConfig: file "%s" not in project.' % path ) # Add the config to the file node spec = self . _GetSpecForConfiguration ( 'FileConfiguration' , config , attrs , tools ) parent . append ( spec )