MCPcopy Create free account
hub / github.com/microsoft/debugpy / cwd

Function cwd

subrepo.py:30–36  ·  view source on GitHub ↗
(p: str)

Source from the content-addressed store, hash-verified

28
29@contextmanager
30def cwd(p: str) -> Iterator[None]:
31 old = os.getcwd()
32 os.chdir(p)
33 try:
34 yield
35 finally:
36 os.chdir(old)
37
38
39def invoke_call(*args: str) -> None:

Callers 2

pullFunction · 0.70
branchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected