From 885c6bc3e8de563ff8d62531fef483a645f3ddb1 Mon Sep 17 00:00:00 2001 From: Anthony Cabrera-Lara Date: Tue, 9 Jun 2026 16:21:35 -0400 Subject: [PATCH 1/2] Update Windows temp directory locations in tempfile.rst --- Doc/library/tempfile.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index bf9198e175a0e1..88f54573b39ed8 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -318,7 +318,7 @@ The module defines the following user-callable items: #. A platform-specific location: - * On Windows, the directories :file:`C:\\TEMP`, :file:`C:\\TMP`, + * 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 From 394e9956fb13224073852ab40873c8213b63cf33 Mon Sep 17 00:00:00 2001 From: Anthony Cabrera-Lara Date: Tue, 9 Jun 2026 21:26:34 -0400 Subject: [PATCH 2/2] Reformat Windows temp directory paths for clarity --- 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 88f54573b39ed8..7e85d627b9f3f4 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -318,8 +318,11 @@ The module defines the following user-callable items: #. A platform-specific location: - * 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 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.