pyufunc.find_executable_from_PATH_on_win#

pyufunc.find_executable_from_PATH_on_win(exe_name, ext='exe', *, sel_dir=None, verbose=True)#

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) – The selected directories to search for the executable. Defaults to [].

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

Location:

pyufunc/util_pathio/_path.py

Note

  • This function is same as find_fname_from_PATH_on_win,

    both are used to find the executable from the system PATH.

Examples

>>> import pyufunc as pf
>>> pf.find_executable_from_PATH_on_win('python', 'exe', True)
["**/python.exe", ...]
Returns:

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

Return type:

list or None