From 53f86f16b6b48c16cff2562dc19fc32bf4a44c80 Mon Sep 17 00:00:00 2001 From: Anthony Cabrera-Lara Date: Mon, 24 Aug 2026 03:13:15 -0400 Subject: [PATCH] gh-151138: Update Windows temp directory locations in tempfile.rst (GH-151210) (cherry picked from commit 9cbd578e38a5ef59f9462b61d1e03338b208cba6) Co-authored-by: Anthony Cabrera-Lara --- Doc/library/tempfile.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index bd8df44618ad799..790c9e1e36dde4f 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -321,8 +321,11 @@ The module defines the following user-callable items: #. A platform-specific location: - * On Windows, the directories :file:`C:\\TEMP`, :file:`C:\\TMP`, - :file:`\\TEMP`, and :file:`\\TMP`, in that order. + * On Windows, the directories + :file:`%USERPROFILE%\\AppData\\Local\\Temp`, + :file:`%SYSTEMROOT%\\Temp`, :file:`C:\\TEMP`, + :file:`C:\\TMP`, :file:`\\TEMP`, and + :file:`\\TMP`, in that order. * On all other platforms, the directories :file:`/tmp`, :file:`/var/tmp`, and :file:`/usr/tmp`, in that order.