mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
GH-118174: specify the type for the path argument of shutil.which
This commit is contained in:
parent
c408c36e9b
commit
97feb4a78b
1 changed files with 3 additions and 2 deletions
|
@ -449,8 +449,9 @@ Directory and files operations
|
|||
*mode* is a permission mask passed to :func:`os.access`, by default
|
||||
determining if the file exists and executable.
|
||||
|
||||
When no *path* is specified, the results of :func:`os.environ` are used,
|
||||
returning either the "PATH" value or a fallback of :data:`os.defpath`.
|
||||
*path* is a "``PATH`` string" specifying the lookup directory list. When no
|
||||
*path* is specified, the results of :func:`os.environ` are used, returning
|
||||
either the "PATH" value or a fallback of :data:`os.defpath`.
|
||||
|
||||
On Windows, the current directory is prepended to the *path* if *mode* does
|
||||
not include ``os.X_OK``. When the *mode* does include ``os.X_OK``, the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue