tools/bisect-builds.py
def CopyMissingFileFromCurrentSource(src_glob, dst):
  """Work around missing files in archives.
  This happens when archives of Chrome don't contain all of the files
  needed to build it. In many cases we can work around this using
  files from the current checkout. The source is in the form of a glob
  so that it can try to look for possible sources of the file in
  multiple locations, but we just arbitrarily try the first match.

  Silently fail if this doesn't work because we don't yet have clear
  markers for builds that require certain files or a way to test
  whether or not launching Chrome succeeded.
  """
  if not os.path.exists(dst):
    matches = glob.glob(src_glob)
    if matches:
      shutil.copy2(matches[0], dst)
Work around missing files in archives.
  This happens when archives of Chrome don't contain all of the files
  needed to build it. In many cases we can work around this using
  files from the current checkout. The source is in the form of a glob
  so that it can try to look for possible sources of the file in
  multiple locations, but we just arbitrarily try the first match.

  Silently fail if this doesn't work because we don't yet have clear
  markers for builds that require certain files or a way to test
  whether or not launching Chrome succeeded.
  
Work around missing files in archives.
This happens when archives of Chrome don't contain all of the files
needed to build it. In many cases we can work around this using
files from the current checkout. The source is in the form of a glob
so that it can try to look for possible sources of the file in
multiple locations, but we just arbitrarily try the first match.

Silently fail if this doesn't work because we don't yet have clear
markers for builds that require certain files or a way to test
whether or not launching Chrome succeeded.
Work around missing files in archives . This happens when archives of Chrome don ' t contain all of the files needed to build it . In many cases we can work around this using files from the current checkout . The source is in the form of a glob so that it can try to look for possible sources of the file in multiple locations but we just arbitrarily try the first match . Silently fail if this doesn ' t work because we don ' t yet have clear markers for builds that require certain files or a way to test whether or not launching Chrome succeeded .
def CopyMissingFileFromCurrentSource(src_glob, dst):
  if not os.path.exists(dst):
    matches = glob.glob(src_glob)
    if matches:
      shutil.copy2(matches[0], dst)
def CopyMissingFileFromCurrentSource ( src_glob , dst ) : if not os . path . exists ( dst ) : matches = glob . glob ( src_glob ) if matches : shutil . copy2 ( matches [ 0 ] , dst )
Work around missing files in archives.
Work around missing files in archives .
"""Work around missing files in archives.
  This happens when archives of Chrome don't contain all of the files
  needed to build it. In many cases we can work around this using
  files from the current checkout. The source is in the form of a glob
  so that it can try to look for possible sources of the file in
  multiple locations, but we just arbitrarily try the first match.

  Silently fail if this doesn't work because we don't yet have clear
  markers for builds that require certain files or a way to test
  whether or not launching Chrome succeeded.
  """
src_glob
dst