Part of twisted.python View Source
Function | which | Search PATH for executable files with the given name. |
On newer versions of MS-Windows, the PATHEXT environment variable will be set to the list of file extensions for files considered executable. This will normally include things like ".EXE". This fuction will also find files with the given name ending with any of these extensions.
On MS-Windows the only flag that has any meaning is os.F_OK. Any other flags will be ignored.
Parameters | name | The name for which to search. (type: str ) |
flags | Arguments to os.access . (type: int ) | |
A list of the full paths to files found, in the order in which they were found. | ||
Returns | (type: list ) |