mirror of https://github.com/python/cpython
On NT, use a better template, ~XXX- where XXX is os.getpid().
This commit is contained in:
parent
85f8b0980d
commit
80fb344a18
|
@ -60,6 +60,8 @@ def gettempprefix():
|
|||
if template == None:
|
||||
if os.name == 'posix':
|
||||
template = '@' + `os.getpid()` + '.'
|
||||
elif os.name == 'nt':
|
||||
template = '~' + `os.getpid()` + '-'
|
||||
elif os.name == 'mac':
|
||||
template = 'Python-Tmp-'
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue