Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7dcf84f

Browse files
committed
Search /tmp before /var/tmp and /usr/tmp -- this seems preferred.
SF patch #404564, Gregor Hoffleit.
1 parent 4eb0c00 commit 7dcf84f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/tempfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def gettempdir():
2121
pwd = os.getcwd()
2222
except (AttributeError, os.error):
2323
pwd = os.curdir
24-
attempdirs = ['/var/tmp', '/usr/tmp', '/tmp', pwd]
24+
attempdirs = ['/tmp', '/var/tmp', '/usr/tmp', pwd]
2525
if os.name == 'nt':
2626
attempdirs.insert(0, 'C:\\TEMP')
2727
attempdirs.insert(0, '\\TEMP')

0 commit comments

Comments
 (0)