From 92bd75fa062b63b52dd2adb580b0c9fe21c28c73 Mon Sep 17 00:00:00 2001 From: Rohit Date: Thu, 11 Jun 2026 13:50:42 +0530 Subject: [PATCH] Update tempfile.rst gh-151138: Update Windows temp directory locations --- Doc/library/tempfile.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index bf9198e175a0e11..7ba1cd336fe29e7 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -318,7 +318,8 @@ 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