

def get_firefox_exe():
    ' Get the path of the Firefox executable\n\n    If the path could not be found, returns None. You may still be able\n    to launch using "firefox" though.\n    '
    paths = []
    if sys.platform.startswith('win'):
        for basepath in ('C:\\Program Files\\', 'C:\\Program Files (x86)\\'):
            paths.append((basepath + 'Mozilla Firefox\\firefox.exe'))
            paths.append((basepath + 'Mozilla\\Firefox\\firefox.exe'))
            paths.append((basepath + 'Firefox\\firefox.exe'))
    elif sys.platform.startswith('linux'):
        paths.append('/usr/lib/firefox/firefox')
        paths.append('/usr/lib64/firefox/firefox')
        paths.append('/usr/lib/iceweasel/iceweasel')
        path.append('/usr/lib64/iceweasel/iceweasel')
    elif sys.platform.startswith('darwin'):
        paths.append('/Applications/Firefox.app/Contents/MacOS/firefox')
    for path in paths:
        if op.isfile(path):
            return path
    else:
        return None

dataset/ETHPy150Open zoofIO/flexx/flexx/webruntime/xul.py get_firefox_exe/VarMisuse@107/252 `paths`->`path`