realtwin.util_lib.find_executable_from_PATH_on_win

realtwin.util_lib.find_executable_from_PATH_on_win(exe_name: str, ext: str = 'exe', sel_dir: list = None, verbose: bool = True) list | None[source]

Find the executable from the system PATH.

Parameters:
  • exe_name (str) – The executable name to search for.

  • ext (str) – The extension of the executable. Defaults to “exe” for executable files.

  • sel_dir (list) – A list of directories to search for the executable. Defaults to [].

  • verbose (bool) – Whether to print the process info. Defaults to True.

Returns:

A list of full path of the executable if found, otherwise None.

Return type:

list or None