third_party/google_input_tools/builder.py
def main():
  """The entrypoint for this script."""
  parser = argparse.ArgumentParser()
  parser.add_argument('--sources-list', nargs=1)
  parser.add_argument('--target', nargs=1)
  parser.add_argument('--path', nargs='?')
  options = parser.parse_args()

  sources = extract_sources(options)
  assert sources, 'Missing source files.'

  providers = {}
  requirements = {}
  for filename in sources:
    extract_dependencies(filename, providers, requirements)

  with open(options.target[0], 'w') as target_file:
    target_file.write('var CLOSURE_NO_DEPS=true;%s' % os.linesep)
    processed = set()
    base_path = base
    if options.path:
      base_path = os.path.join(options.path, base_path)
    export(target_file, base_path, providers, requirements, processed)
    for source_filename in sources:
      export(target_file, source_filename, providers, requirements, processed)
The entrypoint for this script.
The entrypoint for this script.
The entrypoint for this script .
def main():
  parser = argparse.ArgumentParser()
  parser.add_argument('--sources-list', nargs=1)
  parser.add_argument('--target', nargs=1)
  parser.add_argument('--path', nargs='?')
  options = parser.parse_args()
  sources = extract_sources(options)
  assert sources, 'Missing source files.'
  providers = {}
  requirements = {}
  for filename in sources:
    extract_dependencies(filename, providers, requirements)
  with open(options.target[0], 'w') as target_file:
    target_file.write('var CLOSURE_NO_DEPS=true;%s' % os.linesep)
    processed = set()
    base_path = base
    if options.path:
      base_path = os.path.join(options.path, base_path)
    export(target_file, base_path, providers, requirements, processed)
    for source_filename in sources:
      export(target_file, source_filename, providers, requirements, processed)
def main ( ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( '--sources-list' , nargs = 1 ) parser . add_argument ( '--target' , nargs = 1 ) parser . add_argument ( '--path' , nargs = '?' ) options = parser . parse_args ( ) sources = extract_sources ( options ) assert sources , 'Missing source files.' providers = { } requirements = { } for filename in sources : extract_dependencies ( filename , providers , requirements ) with open ( options . target [ 0 ] , 'w' ) as target_file : target_file . write ( 'var CLOSURE_NO_DEPS=true;%s' % os . linesep ) processed = set ( ) base_path = base if options . path : base_path = os . path . join ( options . path , base_path ) export ( target_file , base_path , providers , requirements , processed ) for source_filename in sources : export ( target_file , source_filename , providers , requirements , processed )
The entrypoint for this script.
The entrypoint for this script .
"""The entrypoint for this script."""