def _which(editor):
    try:
        return subprocess.Popen(['which', editor], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[0]
    except __HOLE__:
        return None
dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/dep/cmd2.py/_which