(self, paths, strip_prefix='', new_prefix=None)
Include a list of many files.

    Args:
      paths: (list) list of paths to real files.
      strip_prefix: The common prefix to strip from each file.
      new_prefix: The replacement for the stripped prefix.

    Raises:
      ValueError: if any of the paths to not begin with strip_prefix.
Include a list of many files.
Include a list of many files .
def IncludeManyFiles(self, paths, strip_prefix='', new_prefix=None):
    """Include a list of many files.

    Args:
      paths: (list) list of paths to real files.
      strip_prefix: The common prefix to strip from each file.
      new_prefix: The replacement for the stripped prefix.

    Raises:
      ValueError: if any of the paths to not begin with strip_prefix.
    """
    for path in paths:
      base = path[:len(strip_prefix)]
      name = path[len(strip_prefix):]
      if strip_prefix != base:
        raise ValueError('path: %s did not begin with %s' % (
            path, strip_prefix))
      if new_prefix:
        name = os.path.join(new_prefix, name)
      self.IncludeFile(path, name)
def IncludeManyFiles ( self , paths , strip_prefix = '' , new_prefix = None ) : for path in paths : base = path [ : len ( strip_prefix ) ] name = path [ len ( strip_prefix ) : ] if strip_prefix != base : raise ValueError ( 'path: %s did not begin with %s' % ( path , strip_prefix ) ) if new_prefix : name = os . path . join ( new_prefix , name ) self . IncludeFile ( path , name )