MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/pdb.py:189–196  ·  view source on GitHub ↗
(self, target)

Source from the content-addressed store, hash-verified

187
188class _ScriptTarget(_ExecutableTarget):
189 def __init__(self, target):
190 self._check(target)
191 self._target = self._safe_realpath(target)
192
193 # If PYTHONSAFEPATH (-P) is not set, sys.path[0] is the directory
194 # of pdb, and we should replace it with the directory of the script
195 if not sys.flags.safe_path:
196 sys.path[0] = os.path.dirname(self._target)
197
198 @staticmethod
199 def _check(target):

Callers

nothing calls this directly

Calls 3

_checkMethod · 0.95
_safe_realpathMethod · 0.95
dirnameMethod · 0.45

Tested by

no test coverage detected