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 template == None:
|
||||||
if os.name == 'posix':
|
if os.name == 'posix':
|
||||||
template = '@' + `os.getpid()` + '.'
|
template = '@' + `os.getpid()` + '.'
|
||||||
|
elif os.name == 'nt':
|
||||||
|
template = '~' + `os.getpid()` + '-'
|
||||||
elif os.name == 'mac':
|
elif os.name == 'mac':
|
||||||
template = 'Python-Tmp-'
|
template = 'Python-Tmp-'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue