diff options
author | Steve Dower <steve.dower@microsoft.com> | 2018-05-16 21:50:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16 21:50:29 (GMT) |
commit | e5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3 (patch) | |
tree | 08165b95d947b31d76f1dcf8fb261a167becd181 /Lib/tempfile.py | |
parent | 713a9367366c88662c39ed20dd6bce22399299f1 (diff) | |
download | cpython-e5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3.zip cpython-e5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3.tar.gz cpython-e5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3.tar.bz2 |
bpo-33522: Enable CI builds on Visual Studio Team Services (#6865)
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r-- | Lib/tempfile.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py index e5b7a92..2143224 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -169,7 +169,9 @@ def _candidate_tempdir_list(): # Failing that, try OS-specific locations. if _os.name == 'nt': - dirlist.extend([ r'c:\temp', r'c:\tmp', r'\temp', r'\tmp' ]) + dirlist.extend([ _os.path.expanduser(r'~\AppData\Local\Temp'), + _os.path.expandvars(r'%SYSTEMROOT%\Temp'), + r'c:\temp', r'c:\tmp', r'\temp', r'\tmp' ]) else: dirlist.extend([ '/tmp', '/var/tmp', '/usr/tmp' ]) |