

def _create_temp_dir():
    'Create a temporary directory and remove it at exit'
    tmpdir = tempfile.mkdtemp(prefix='wppm_')
    atexit.register((lambda path: shutil.rmtree(path, onerror=onerror)), tmpdir)
    return tmpdir

dataset/ETHPy150Open winpython/winpython/winpython/utils.py _create_temp_dir/original