@contextmanager
def temp_dir():
    tmp = tempfile.mkdtemp()
    try:
        yield tmp
    finally:
        shutil.rmtree(tmp)
Sets the cocos (or pyglet) app clock to a custom one
dataset/ETHPy150Open geopython/pywps/pywps/wpsserver.py/temp_dir--crossover with--dataset/ETHPy150Open los-cocos/cocos/cocos/custom_clocks.py/set_app_clock