MCPcopy
hub / github.com/hyperopt/hyperopt / working_dir

Function working_dir

hyperopt/utils.py:211–215  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

209
210@contextmanager
211def working_dir(dir):
212 cwd = os.getcwd()
213 os.chdir(dir)
214 yield
215 os.chdir(cwd)
216
217
218def path_split_all(path):

Callers 2

test_workdirFunction · 0.90
run_oneMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_workdirFunction · 0.72