Allow 'preexec_fn' and 'creationflags' keywords
which will be passed through to the subprocess call
Markus Gerstel
2 years ago
0 | 0 |
=======
|
1 | 1 |
History
|
2 | 2 |
=======
|
|
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
|
3 | 8 |
|
4 | 9 |
2.3.2 (2022-01-28)
|
5 | 10 |
------------------
|
444 | 444 |
win32resolve=True,
|
445 | 445 |
working_directory=None,
|
446 | 446 |
raise_timeout_exception=False,
|
|
447 |
creationflags=0,
|
|
448 |
preexec_fn=None,
|
447 | 449 |
):
|
448 | 450 |
"""
|
449 | 451 |
Run an external process.
|
|
476 | 478 |
instead of returning an object that can be checked
|
477 | 479 |
for a timeout condition. Defaults to False, will be
|
478 | 480 |
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
|
479 | 483 |
:return: The exit code, stdout, stderr (separately, as byte strings)
|
480 | 484 |
as a subprocess.CompletedProcess object.
|
481 | 485 |
"""
|
|
535 | 539 |
stdin=stdin_pipe,
|
536 | 540 |
stdout=subprocess.PIPE,
|
537 | 541 |
stderr=subprocess.PIPE,
|
|
542 |
creationflags=creationflags,
|
|
543 |
preexec_fn=preexec_fn,
|
538 | 544 |
)
|
539 | 545 |
|
540 | 546 |
thread_pipe_pool = []
|