Determines the location of an executable in the system path.
Use this to find an executable which is in the system path. Executables not found in the path are not reported.
menu: veeos ==> Scripting ==> Script-Based Functions ==> Which
library: scriptLib
The typical usage of which occurs when the user has several executables in their path and wants to determine which one gets used. For example there may be several versions of Python installed. When the user executes "python" via Execute Program Python runs fine but it may be unclear which version runs.
o_which("python.exe")
returns C:\apps\python3.8\python.exe
Under the assumption that it is likely an oversight, the typical ".exe" suffix is automatically appended if it is not specified. As such if you are looking for an executable without the ".exe" suffix, o_which() may return something other than what you are looking for
This function is implemented with a Python script called via scriptPro.
VEE 7.0+, Windows 7+