Skip to content

Commit bc596bd

Browse files
[3.14] gh-151138: Update Windows temp directory locations in tempfile.rst (GH-151210) (#156307)
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 0bafc36 commit bc596bd

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
@@ -321,8 +321,11 @@ The module defines the following user-callable items:
321321

322322
#. A platform-specific location:
323323

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

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

0 commit comments

Comments
 (0)