def within_tempdir(callable):
 proxy = with_tempdir(in_tempdir(callable))
 proxy.__name__ = callable.__name__
 return proxy

def within_tempdir ( callable ) : proxy = with_tempdir ( in_tempdir ( callable ) ) proxy . __name__ = callable . __name__ return proxy
a decorator run the enclosed function inside a tmpdir removed after execution .