def has_firefox():
    if get_firefox_exe() is not None:
        return True

    try:
        subprocess.check_output(['firefox', '--version'])
        return True
    except Exception:
        return False
Get whether firefox is installed.
dataset/ETHPy150Open zoofIO/flexx/flexx/webruntime/xul.py/has_firefox