def _find_python():
    if sys.version_info[0] == 2 and sys.executable and os.path.isfile(sys.executable):
        return sys.executable
    for python in ('python2', 'python2.7', 'python2.6'):
        try:
            subprocess.call([python, '-c', '"raise SystemExit"'])
            return python
        except __HOLE__:
            pass
    return 'python'
dataset/ETHPy150Open pyjs/pyjs/examples/_examples/util.py/_find_python