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

Method __init__

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

Source from the content-addressed store, hash-verified

281
282class _ZipTarget(_ExecutableTarget):
283 def __init__(self, target):
284 import runpy
285
286 self._target = os.path.realpath(target)
287 sys.path.insert(0, self._target)
288 try:
289 _, self._spec, self._code = runpy._get_main_module_details()
290 except ImportError as e:
291 print(f"ImportError: {e}")
292 sys.exit(1)
293 except Exception:
294 traceback.print_exc()
295 sys.exit(1)
296
297 def __repr__(self):
298 return self._target

Callers

nothing calls this directly

Calls 4

print_excMethod · 0.80
realpathMethod · 0.45
insertMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected