Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1bc4251

Browse files
committed
change the location of the note.
1 parent2b241f5 commit1bc4251

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎Doc/library/shutil.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,6 @@ 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.
450448

451449
*mode* is a permission mask passed to:func:`os.access`, by default
452450
determining if the file exists and is executable.
@@ -456,6 +454,12 @@ Directory and files operations
456454
:envvar:`PATH` environment variable is read from:data:`os.environ`,
457455
falling back to:data:`os.defpath` if it is not set.
458456

457+
..note::
458+
459+
If *cmd* contains a directory component,:func:`!which` only checks the
460+
specified path directly and does not search the directories listed in *path*
461+
or in the system's ``PATH`` environment variable.
462+
459463
On Windows, the current directory is prepended to the *path* if *mode* does
460464
not include ``os.X_OK``. When the *mode* does include ``os.X_OK``, the
461465
Windows API ``NeedCurrentDirectoryForExePathW`` will be consulted to

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp