kerncraft/iaca_get.py
def find_iaca():
    """Return (hopefully) valid installation of IACA."""
    requires = ['iaca2.2', 'iaca2.3', 'iaca3.0']
    for path in serach_path():
        path += 'bin/'
        valid = True
        for r in requires:
            if not os.path.exists(path + r):
                valid = False
                break
        if valid:
            return path
    raise RuntimeError("No IACA installation found in {}. Run iaca_get command to fix this issue."
                       "".format(serach_path()))
def find_iaca():
    """Return (hopefully) valid installation of IACA."""
    requires = ['iaca2.2', 'iaca2.3', 'iaca3.0']
    for path in serach_path():
        path += 'bin/'
        valid = True
        for r in requires:
            if not os.path.exists(path + r):
                valid = False
                break
        if valid:
            return path
    raise RuntimeError("No IACA installation found in {}. Run iaca_get command to fix this issue."
                       "".format(serach_path()))
Return (hopefully) valid installation of IACA.