ldc_bpcsad.utils
.which
- ldc_bpcsad.utils.which(program, search_dirs=None)[source]
Returns path to excutable program.
If program is not found on the user’s PATH, returns
None
.- Parameters:
program (str) – Name of program to search for.
search_dirs (Iterable[pathlib.Path], optional) – List of additional directories to search. These directories will be searched in order BEFORE the user’s PATH. (Default: None)