Codebase list python-procrunner / 816697a
Allow 'preexec_fn' and 'creationflags' keywords which will be passed through to the subprocess call Markus Gerstel 2 years ago
2 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
00 =======
11 History
22 =======
3
4 2.3.3 (2022-03-23)
5 ------------------
6 * Allow specifying 'preexec_fn' and 'creationflags' keywords, which will be passed through to
7 the subprocess call
38
49 2.3.2 (2022-01-28)
510 ------------------
444444 win32resolve=True,
445445 working_directory=None,
446446 raise_timeout_exception=False,
447 creationflags=0,
448 preexec_fn=None,
447449 ):
448450 """
449451 Run an external process.
476478 instead of returning an object that can be checked
477479 for a timeout condition. Defaults to False, will be
478480 changed to True in a future release.
481 :param preexec_fn: pre-execution function, will be passed to subprocess call
482 :param creationflags: flags that will be passed to subprocess call
479483 :return: The exit code, stdout, stderr (separately, as byte strings)
480484 as a subprocess.CompletedProcess object.
481485 """
535539 stdin=stdin_pipe,
536540 stdout=subprocess.PIPE,
537541 stderr=subprocess.PIPE,
542 creationflags=creationflags,
543 preexec_fn=preexec_fn,
538544 )
539545
540546 thread_pipe_pool = []