Commit 25301cc3 authored by Guido van Rossum's avatar Guido van Rossum

On NT, use a better template, ~XXX- where XXX is os.getpid().

parent 107055a5
...@@ -60,6 +60,8 @@ def gettempprefix(): ...@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment