find_program#

wattson.util.terminal.find_program(candidates: list, fallback: str) str#

Finds a program from the given list of candidates which is installed. If no matching program is found, the fallback is returned

Parameters:
  • candidates (list) –

  • fallback (str) –