findInPath(file, opt_checkCwd)code »
Searches the PATH environment variable for the given file.
Parameters
- file
string The file to locate on the PATH.
- opt_checkCwd
boolean= Whether to always start with the search with
the current working directory, regardless of whether it is explicitly
listed on the PATH.
Returns
?stringPath to the located file, or null if it could
not be found.