Skip to content

Commit 1c6e256

Browse files
committed
update shutil.which doc
1 parent ed8e886 commit 1c6e256

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/shutil.rst

+2
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ Directory and files operations
445445

446446
Return the path to an executable which would be run if the given *cmd* was
447447
called. If no *cmd* would be called, return ``None``.
448+
If *cmd* contains a directory component, *which* will only check the specified path directly
449+
and will not search the directories listed in *path* or in the system's ``PATH`` environment variable.
448450

449451
*mode* is a permission mask passed to :func:`os.access`, by default
450452
determining if the file exists and is executable.

0 commit comments

Comments
 (0)