def get_tmp_dir():
 dir_name = tempfile.mkdtemp(prefix='autoserv-')
 pid = os.getpid()
 if (pid not in __tmp_dirs):
  __tmp_dirs[pid] = []
 __tmp_dirs[pid].append(dir_name)
 return dir_name

def get_tmp_dir ( ) : dir_name = tempfile . mkdtemp ( prefix = 'autoserv-' ) pid = os . getpid ( ) if ( pid not in __tmp_dirs ) : __tmp_dirs [ pid ] = [ ] __tmp_dirs [ pid ] . append ( dir_name ) return dir_name
return the pathname of a directory on the host suitable for temporary file storage .