Skip to content

Commit 33b2224

Browse files
[3.15] gh-151138: Update Windows temp directory locations in tempfile.rst (GH-151210) (#156306)
gh-151138: Update Windows temp directory locations in tempfile.rst (GH-151210) (cherry picked from commit 9cbd578) Co-authored-by: Anthony Cabrera-Lara <anthonycabreralara@gmail.com>
1 parent 1a30c4d commit 33b2224

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Doc/library/tempfile.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,11 @@ The module defines the following user-callable items:
319319

320320
#. A platform-specific location:
321321

322-
* On Windows, the directories :file:`C:\\TEMP`, :file:`C:\\TMP`,
323-
:file:`\\TEMP`, and :file:`\\TMP`, in that order.
322+
* On Windows, the directories
323+
:file:`%USERPROFILE%\\AppData\\Local\\Temp`,
324+
:file:`%SYSTEMROOT%\\Temp`, :file:`C:\\TEMP`,
325+
:file:`C:\\TMP`, :file:`\\TEMP`, and
326+
:file:`\\TMP`, in that order.
324327

325328
* On all other platforms, the directories :file:`/tmp`, :file:`/var/tmp`, and
326329
:file:`/usr/tmp`, in that order.

0 commit comments

Comments
 (0)