Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
01c152e
GH-75586 - Fix case where PATHEXT isn't applied to items in PATH (Win…
csm10495 Apr 2, 2023
0d4cd7b
PR updates
csm10495 Apr 2, 2023
5fac84a
Add tests
csm10495 Apr 2, 2023
fa145da
PR updates
csm10495 Apr 2, 2023
84a7976
line len fix
csm10495 Apr 2, 2023
63a06c4
📜🤖 Added by blurb_it.
blurb-it[bot] Apr 2, 2023
7686a23
Add changelog entry
csm10495 Apr 2, 2023
381e4fe
Double backticks
csm10495 Apr 2, 2023
e7c0b58
Update Lib/shutil.py
csm10495 Apr 2, 2023
26e3b15
PR updates
csm10495 Apr 2, 2023
6272b62
pep8 fix
csm10495 Apr 2, 2023
b6d29c8
Update Lib/test/test_shutil.py
csm10495 Apr 2, 2023
1096cb7
Update Lib/test/test_shutil.py
csm10495 Apr 2, 2023
92955d0
Update Lib/shutil.py
csm10495 Apr 3, 2023
616df6c
docs updates
csm10495 Apr 3, 2023
255e4ff
Add another test
csm10495 Apr 3, 2023
f52868d
Update Doc/library/shutil.rst
csm10495 Apr 3, 2023
6e9269f
rewording
csm10495 Apr 3, 2023
a6b7eab
Rewording
csm10495 Apr 3, 2023
7480daa
Reword whats new
csm10495 Apr 3, 2023
a48260c
Clarify
csm10495 Apr 3, 2023
6bb6f6c
Clarify how to not search cwd for exes
csm10495 Apr 3, 2023
b5f3eba
Doc updates
csm10495 Apr 3, 2023
3bf4b8d
Update Doc/library/shutil.rst
csm10495 Apr 3, 2023
be73608
Update 2023-04-02-22-04-26.gh-issue-75586.526iJm.rst
csm10495 Apr 3, 2023
0169ba9
Update Doc/library/shutil.rst
csm10495 Apr 4, 2023
499d2de
Update Lib/shutil.py
csm10495 Apr 4, 2023
3ead780
Add test for behavior
csm10495 Apr 4, 2023
f9267da
kick ci
csm10495 Apr 4, 2023
d1e68ff
Mention cwd first behavior
csm10495 Apr 4, 2023
9badf8c
Wording
csm10495 Apr 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Doc/library/shutil.rst
Co-authored-by: Steve Dower <[email protected]>
  • Loading branch information
csm10495 and zooba authored Apr 3, 2023
commit f52868d2e0ba8ac2ea360f38f420ed6900181957
14 changes: 7 additions & 7 deletions Doc/library/shutil.rst
Original file line number Diff line number Diff line change
Expand Up @@ -461,13 +461,13 @@ Directory and files operations
:class:`bytes`, the result type is also :class:`bytes`.

.. versionchanged:: 3.12
On Windows: ``NeedCurrentDirectoryForExePathW`` will be consulted
for non- ``os.X_OK`` modes to determine if the current working directory
should be prepended to *path*. Additionally, the ``PATHEXT`` environment
variable is now consulted when a full path to a cmd, minus the extension,
is given. Also, now a *cmd* with a matching ``PATHEXT`` extension will
be returned prior to one fully matching, if the fully matching one is
found later in *path*.
On Windows, queries allowing executables (``os.X_OK``) will now
consult ``NeedCurrentDirectoryForExePathW`` to determine if the
current working directory should be searched first. Additionally,
the ``PATHEXT`` environment variable is now consulted even when
*cmd* includes an extension. Finally, a *cmd* found with a
``PATHEXT`` extension in an earlier directory from *path* will
now be returned ahead of any match found later in *path*.

.. exception:: Error

Expand Down