def PersistentTemporaryDirectory(suffix='', prefix='', dir=None):
 if (dir is None):
  dir = base_dir()
 tdir = _make_dir(suffix, prefix, dir)
 atexit.register(remove_dir, tdir)
 return tdir

def PersistentTemporaryDirectory ( suffix = '' , prefix = '' , dir = None ) : if ( dir is None ) : dir = base_dir ( ) tdir = _make_dir ( suffix , prefix , dir ) atexit . register ( remove_dir , tdir ) return tdir
return the path to a newly created temporary directory that will be automatically deleted on application exit .