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

Method _init_log_dir

tests/debug/session.py:336–349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

334 return self.backchannel
335
336 def _init_log_dir(self):
337 if self.log_dir is None:
338 return False
339
340 log.info("Logs for {0} will be in {1}", self, json.repr(self.log_dir))
341 try:
342 self.log_dir.remove()
343 except Exception:
344 pass
345 self.log_dir.ensure(dir=True)
346
347 # Make subsequent calls of this method no-op for the remainder of the session.
348 self._init_log_dir = lambda: True
349 return True
350
351 def _make_env(self, base_env, codecov=True):
352 env = util.Env.snapshot()

Callers 1

_make_envMethod · 0.95

Calls 2

infoMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected