third_party/google_input_tools/builder.py
def extract_sources(options):
  """Extracts list of sources based on command line options.

  Args:
    options: Parsed command line options.
  Returns:
    List of source files.  If the path option is specified then file paths are
    absolute.  Otherwise, relative paths may be used.
  """

  sources = []
  # Optionally load list of source files from a json file. Useful when the
  # list of files to process is too long for the command line.
  with open(options.sources_list[0], 'r') as f:
    sources = shlex.split(f.read())
  if options.path:
    sources = [os.path.join(options.path, source) for source in sources]
  return sources
Extracts list of sources based on command line options.

  Args:
    options: Parsed command line options.
  Returns:
    List of source files.  If the path option is specified then file paths are
    absolute.  Otherwise, relative paths may be used.
  
Extracts list of sources based on command line options.
Extracts list of sources based on command line options .
def extract_sources(options):
  sources = []
  with open(options.sources_list[0], 'r') as f:
    sources = shlex.split(f.read())
  if options.path:
    sources = [os.path.join(options.path, source) for source in sources]
  return sources
def extract_sources ( options ) : sources = [ ] with open ( options . sources_list [ 0 ] , 'r' ) as f : sources = shlex . split ( f . read ( ) ) if options . path : sources = [ os . path . join ( options . path , source ) for source in sources ] return sources
Extracts list of sources based on command line options.
Extracts list of sources based on command line options .
"""Extracts list of sources based on command line options.

  Args:
    options: Parsed command line options.
  Returns:
    List of source files.  If the path option is specified then file paths are
    absolute.  Otherwise, relative paths may be used.
  """ # Optionally load list of source files from a json file. Useful when the # list of files to process is too long for the command line.
List of source files.  If the path option is specified then file paths are
absolute.  Otherwise, relative paths may be used.
List of source files . If the path option is specified then file paths are absolute . Otherwise relative paths may be used .
options
Parsed command line options.
Parsed command line options .