Ë ‚Ö¦i«Z ã ó´ — d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlmZ ddlZ ddlZg d¢Z ddlZdZej* dvZer@ddlZddlmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z) ejU g d ¢« nYerCdd l+m,Z- ej\ Z/ej` Z1ejd Z3ejh Z5ejl Z7ndZ-dZ/dZ1dZ3dZ5dZ7ddl8Z8ddl9Z9 G d„ de:« Z; G d „ de;« Z< G d„ de;« Z=er G d„ d« Z> G d„ de?« Z@n, eAe8dd« ZB eCe9d« r e9jˆ ZEne9jŒ ZEerdZGd„ ZHng ZGd„ ZHdZIdZJdZKd„ ZLd„ ZMd„ ZNdd œd!„ZOd"„ ZPdd œd#„ZQ G d$„ d%eR« ZSddddd&œd'„ZTd(„ ZUddd)œd*„ZVddd)œd+„ZWd,„ ZX eX« ZYdZZ G d-„ d.« Z[y# e$ r dZY �ŒŠw xY w# e$ r dZY �Œ�w xY w)/a• Subprocesses with accessible I/O streams This module allows you to spawn processes, connect to their input/output/error pipes, and obtain their return codes. For a complete description of this module see the Python documentation. Main API ======== run(...): Runs a command, waits for it to complete, then returns a CompletedProcess instance. Popen(...): A class for flexibly executing a command in a new process Constants --------- DEVNULL: Special value that indicates that os.devnull should be used PIPE: Special value that indicates a pipe should be created STDOUT: Special value that indicates that stderr should go to stdout Older API ========= call(...): Runs a command, waits for it to complete, then returns the return code. check_call(...): Same as call() but raises CalledProcessError() if return code is not 0 check_output(...): Same as check_call() but returns the contents of stdout instead of a return code getoutput(...): Runs a command in the shell, waits for it to complete, then returns the output getstatusoutput(...): Runs a command in the shell, waits for it to complete, then returns a (exitcode, output) tuple é N)Ú monotonic)ÚPopenÚPIPEÚSTDOUTÚcallÚ check_callÚgetstatusoutputÚ getoutputÚcheck_outputÚrunÚCalledProcessErrorÚDEVNULLÚSubprocessErrorÚTimeoutExpiredÚCompletedProcessTF> ÚwasiÚ emscripten)ÚCREATE_NEW_CONSOLEÚCREATE_NEW_PROCESS_GROUPÚSTD_INPUT_HANDLEÚSTD_OUTPUT_HANDLEÚSTD_ERROR_HANDLEÚSW_HIDEÚSTARTF_USESTDHANDLESÚSTARTF_USESHOWWINDOWÚABOVE_NORMAL_PRIORITY_CLASSÚBELOW_NORMAL_PRIORITY_CLASSÚHIGH_PRIORITY_CLASSÚIDLE_PRIORITY_CLASSÚNORMAL_PRIORITY_CLASSÚREALTIME_PRIORITY_CLASSÚCREATE_NO_WINDOWÚDETACHED_PROCESSÚCREATE_DEFAULT_ERROR_MODEÚCREATE_BREAKAWAY_FROM_JOB)r r r r r r r r ÚSTARTUPINFOr r r r r r! r" r# r$ r% )Ú fork_execc ó — e Zd Zy)r N)Ú__name__Ú __module__Ú__qualname__© ó ú#/usr/lib64/python3.12/subprocess.pyr r { s … r- r c óR — e Zd ZdZdd„Zd„ Zed„ « Zej d„ « Zy)r z£Raised when run() is called with check=True and the process returns a non-zero exit status. Attributes: cmd, returncode, stdout, stderr, output Nc ó<