def get_executable():
    name = get_var('vial_python_executable', 'default')

    try:
        return get_var('vial_python_executables', {})[name]
    except __HOLE__:
        pass

    path = get_virtualenvwrapper_executable(name)
    if path:
        return path

    if name == 'default':
        return sys.executable
    elif name == 'python2':
        path = which('python2')
        if path:
            return path
    elif name == 'python3':
        path = which('python3')
        if path:
            return path

    return sys.executable
dataset/ETHPy150Open baverman/vial-python/vial-plugin/python/env.py/get_executable