Commit 73d28d5
committed
docs(tempfile): correct Windows temp directory search order
The existing docs claim gettempdir() searches C:\TEMP, C:\TMP, \TEMP, \TMP
on Windows, but the actual implementation (Lib/tempfile.py lines 192-194)
first checks TMPDIR, TEMP, and TMP environment variables.
On Windows, TEMP and TMP typically point to:
- %USERPROFILE%\AppData\Local\Temp (user temp)
- %SYSTEMROOT%\Temp (system temp)
Update the docs to reflect the actual search order: env vars first, then
hardcoded fallback paths.
Fixes #1511381 parent a646c99 commit 73d28d5
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
352 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
| |||
0 commit comments