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

Method build_subprocess_arglist

Lib/idlelib/pyshell.py:430–440  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

428 self.rpcsubproc = subprocess.Popen(self.subprocess_arglist, env=env)
429
430 def build_subprocess_arglist(self):
431 assert (self.port!=0), (
432 "Socket should have been assigned a port number.")
433 w = ['-W' + s for s in sys.warnoptions]
434 # Maybe IDLE is installed and is being accessed via sys.path,
435 # or maybe it's not installed and the idle.py script is being
436 # run from the IDLE source directory.
437 del_exitf = idleConf.GetOption('main', 'General', 'delete-exitfunc',
438 default=False, type='bool')
439 command = f"__import__('idlelib.run').run.main({del_exitf!r})"
440 return [sys.executable] + w + ["-c", command, str(self.port)]
441
442 def start_subprocess(self):
443 addr = (HOST, self.port)

Callers 1

spawn_subprocessMethod · 0.95

Calls 2

strFunction · 0.85
GetOptionMethod · 0.80

Tested by

no test coverage detected