(self)
| 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) |
no test coverage detected