Skip to content

Commit 9cbd578

Browse files
gh-151138: Update Windows temp directory locations in tempfile.rst (#151210)
1 parent 53d2e14 commit 9cbd578

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

349349
#. A platform-specific location:
350350

351-
* On Windows, the directories :file:`C:\\TEMP`, :file:`C:\\TMP`,
352-
:file:`\\TEMP`, and :file:`\\TMP`, in that order.
351+
* On Windows, the directories
352+
:file:`%USERPROFILE%\\AppData\\Local\\Temp`,
353+
:file:`%SYSTEMROOT%\\Temp`, :file:`C:\\TEMP`,
354+
:file:`C:\\TMP`, :file:`\\TEMP`, and
355+
:file:`\\TMP`, in that order.
353356

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

0 commit comments

Comments
 (0)