mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-19 13:32:03 +00:00
10 lines
160 B
Python
10 lines
160 B
Python
![]() |
import contextlib
|
||
|
import shutil
|
||
|
import tempfile
|
||
|
|
||
|
@contextlib.contextmanager
|
||
|
def tempdir():
|
||
|
temp = tempfile.mkdtemp()
|
||
|
yield temp
|
||
|
shutil.rmtree(temp)
|