MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / create_process

Method create_process

tests_python/debugger_unittest.py:499–516  ·  view source on GitHub ↗
(self, args, writer)

Source from the content-addressed store, hash-verified

497 return
498
499 def create_process(self, args, writer):
500 env = writer.get_environ() if writer is not None else None
501 if env is None:
502 env = os.environ.copy()
503
504 if self.pydevd_debug_file:
505 env["PYDEVD_DEBUG"] = "True"
506 env["PYDEVD_DEBUG_FILE"] = self.pydevd_debug_file
507 print("Logging to: %s" % (self.pydevd_debug_file,))
508 process = subprocess.Popen(
509 args,
510 stdout=subprocess.PIPE,
511 stderr=subprocess.PIPE,
512 stdin=subprocess.PIPE,
513 cwd=writer.get_cwd() if writer is not None else ".",
514 env=env,
515 )
516 return process
517
518 @contextmanager
519 def run_process(self, args, writer):

Callers 1

run_processMethod · 0.95

Calls 3

copyMethod · 0.80
get_environMethod · 0.45
get_cwdMethod · 0.45

Tested by

no test coverage detected