MCPcopy Create free account
hub / github.com/GAIR-NLP/factool / create_tempdir

Function create_tempdir

factool/code/helper/_execution.py:132–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130
131@contextlib.contextmanager
132def create_tempdir():
133 with tempfile.TemporaryDirectory() as dirname:
134 with chdir(dirname):
135 yield dirname
136
137
138class TimeoutException(Exception):

Callers 1

unsafe_executeFunction · 0.85

Calls 1

chdirFunction · 0.85

Tested by

no test coverage detected