Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
30
def
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
39
def
invoke_call(*args: str) -> None:
Callers
2
pull
Function · 0.70
branch
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected