We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed8e886 commit 1c6e256Copy full SHA for 1c6e256
Doc/library/shutil.rst
@@ -445,6 +445,8 @@ Directory and files operations
445
446
Return the path to an executable which would be run if the given *cmd* was
447
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.
450
451
*mode* is a permission mask passed to :func:`os.access`, by default
452
determining if the file exists and is executable.
0 commit comments