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

Method make_relative

tests/debug/targets.py:103–107  ·  view source on GitHub ↗
(self, cwd)

Source from the content-addressed store, hash-verified

101 self._cwd = ""
102
103 def make_relative(self, cwd):
104 if not cwd.endswith(("/", "\\")):
105 cwd += os.path.sep
106 assert self.filename.strpath.lower().startswith(cwd.lower())
107 self._cwd = cwd
108
109 def _get_relative_program(self):
110 assert self._cwd

Callers 1

test_run_relative_pathFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_run_relative_pathFunction · 0.76