mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
On NT, use a better template, ~XXX- where XXX is os.getpid().
This commit is contained in:
parent
85f8b0980d
commit
80fb344a18
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue