MCPcopy Create free account
hub / github.com/dask/dask / changed_cwd

Function changed_cwd

dask/utils.py:428–434  ·  view source on GitHub ↗
(new_cwd)

Source from the content-addressed store, hash-verified

426
427@contextmanager
428def changed_cwd(new_cwd):
429 old_cwd = os.getcwd()
430 os.chdir(new_cwd)
431 try:
432 yield
433 finally:
434 os.chdir(old_cwd)
435
436
437@contextmanager

Callers 1

tmp_cwdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected