Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62109c4 commit 4b78cbdCopy full SHA for 4b78cbd
1 file changed
Doc/library/shutil.rst
@@ -454,6 +454,10 @@ Directory and files operations
454
:envvar:`PATH` environment variable is read from :data:`os.environ`,
455
falling back to :data:`os.defpath` if it is not set.
456
457
+ If *cmd* contains a directory component, :func:`!which` only checks the
458
+ specified path directly and does not search the directories listed in
459
+ *path* or in the system's :envvar:`PATH` environment variable.
460
+
461
On Windows, the current directory is prepended to the *path* if *mode* does
462
not include ``os.X_OK``. When the *mode* does include ``os.X_OK``, the
463
Windows API ``NeedCurrentDirectoryForExePathW`` will be consulted to
0 commit comments