src/lsi/lsi.py
def _get_path(cmd):
    """Queries bash to find the path to a commmand on the system."""
    if cmd in _PATHS:
        return _PATHS[cmd]
    out = subprocess.check_output('which {}'.format(cmd), shell=True)
    _PATHS[cmd] = out.decode("utf-8").strip()
    return _PATHS[cmd]
def _get_path(cmd):
    """Queries bash to find the path to a commmand on the system."""
    if cmd in _PATHS:
        return _PATHS[cmd]
    out = subprocess.check_output('which {}'.format(cmd), shell=True)
    _PATHS[cmd] = out.decode("utf-8").strip()
    return _PATHS[cmd]
Queries bash to find the path to a commmand on the system.