From a83550745dd1a82804f4fc731cceb18ba45d707d 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 e18d8c18d5abd76..b8f7240bb61db1f 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.