parameters: (paths)
docstring: Given a list of file paths, return Closure base.js path, if any.
  
    Args:
      paths: A list of paths.
  
    Returns:
      The path to Closure's base.js file including filename, if found.
docstring_summary: Given a list of file paths, return Closure base.js path, if any.
docstring_tokens: Given a list of file paths return Closure base . js path if any .
function: def FindClosureBasePath(paths):
    """Given a list of file paths, return Closure base.js path, if any.
  
    Args:
      paths: A list of paths.
  
    Returns:
      The path to Closure's base.js file including filename, if found.
    """
  
    for path in paths:
      pathname, filename = os.path.split(path)
  
      if filename == 'base.js':
        f = open(path)
  
        is_base = False
  
        # Sanity check that this is the Closure base file.  Check that this
        # is where goog is defined.  This is determined by the @provideGoog
        # flag.
        for line in f:
          if '@provideGoog' in line:
            is_base = True
            break
  
        f.close()
  
        if is_base:
          return path
function_tokens: def FindClosureBasePath ( paths ) : for path in paths : pathname , filename = os . path . split ( path ) if filename == 'base.js' : f = open ( path ) is_base = False # Sanity check that this is the Closure base file.  Check that this # is where goog is defined.  This is determined by the @provideGoog # flag. for line in f : if '@provideGoog' in line : is_base = True break f . close ( ) if is_base : return path