Lines Matching defs:subprocess
22 import subprocess
263 retcode = subprocess.call(args,
265 creationflags=subprocess.CREATE_NEW_CONSOLE,
735 subprocess.check_call(
1119 proc = subprocess.run([sys.executable, '-c', code], check=True,
1120 stdout=subprocess.PIPE, text=True)
1124 proc = subprocess.run([sys.executable, '-c', code], check=True,
1125 stdout=subprocess.PIPE, text=True)
1674 out = subprocess.check_output(["cacls.exe", path, "/s"], encoding="oem")
2354 # Needs to accept -1. We run this in a subprocess to avoid
2356 subprocess.check_call([
2373 # Needs to accept -1. We run this in a subprocess to avoid
2375 subprocess.check_call([
2454 # Start sys.executable as a subprocess and communicate from the
2455 # subprocess to the parent that the interpreter is ready. When it
2456 # becomes ready, send *sig* via os.kill to the subprocess and check
2475 proc = subprocess.Popen([sys.executable, "-c",
2480 stdout=subprocess.PIPE,
2481 stderr=subprocess.PIPE,
2482 stdin=subprocess.PIPE)
2502 self.fail("Did not receive communication from the subprocess")
2521 proc = subprocess.Popen([sys.executable,
2524 creationflags=subprocess.CREATE_NEW_PROCESS_GROUP)
2543 self.fail("subprocess did not stop on {}".format(name))
2971 with subprocess.Popen([sys.executable, '-c', command, filename, str(deadline)]) as proc:
2979 except subprocess.TimeoutExpired:
3053 p = subprocess.Popen([sys.executable, '-c',
3055 stdout=subprocess.PIPE)
3057 # We are the parent of our subprocess
3693 subprocess.check_output(
3694 ["stty", "size"], stderr=subprocess.DEVNULL, text=True
3697 except (FileNotFoundError, subprocess.CalledProcessError,