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

Method _get_relative_program

tests/debug/targets.py:109–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 self._cwd = cwd
108
109 def _get_relative_program(self):
110 assert self._cwd
111 relative_filename = self.filename.strpath[len(self._cwd) :]
112 assert not relative_filename.startswith(("/", "\\"))
113 return relative_filename
114
115 def __repr__(self):
116 if self._cwd:

Callers 3

__repr__Method · 0.95
configureMethod · 0.95
cliMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected