pyufunc.find_fname_from_PATH_on_win#

pyufunc.find_fname_from_PATH_on_win(fname, ext='exe', sel_dir=None, verbose=True)#

Find the filename from the system PATH.

Parameters:
  • fname (str) – The filename to search for.

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

  • sel_dir (list) – The selected directories to search for the filename. Defaults to [].

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

Location:

pyufunc/util_pathio/_path.py

Note

  • This function is same as find_executable_from_PATH_on_win,

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

Examples

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

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

Return type:

list or None