t.p.p.which(name, flags=os.X_OK) : function documentation

Part of twisted.python.procutils View Source

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 function 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.

ParametersnameThe name for which to search. (type: str)
flagsArguments 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)
API Documentation for Twisted, generated by pydoctor at 2015-01-30 14:14:53.