def wait_for_installation(program, command=False, search=False, basedir=""):
  print("Waiting for installation to complete.\nAlternately, press Ctrl-C to "
        "quit, and rerun this script after installation has completed.")
  try:
    while command:
      try:
        subprocess.check_output(program, shell=True, stderr=subprocess.PIPE)
        return True
      except subprocess.CalledProcessError:
        time.sleep(DELAY)

    while search and not find_file(basedir, program):
      time.sleep(DELAY)

    while not search and not find_executable(program):
      time.sleep(DELAY)
  except KeyboardInterrupt:
    sys.stderr.write("Setup exited before completion.")
    return False
  return True
Create a "Mozilla User".
dataset/ETHPy150Open google/fplutil/setuputil/util.py/wait_for_installation--crossover with--dataset/ETHPy150Open mozilla/addons-server/conftest.py/mozilla_user