Return (standard output, standard error) of executing cmd in a shell. Accepts the same arguments as os.system(). Parameters ---------- cmd : str or list A command to be executed in the system shell. Returns ------- stdout : str stderr : str
(cmd: str | list[str])
| 144 | |
| 145 | |
| 146 | def getoutputerror(cmd: str | list[str]) -> tuple[str, str]: |
| 147 | """Return (standard output, standard error) of executing cmd in a shell. |
| 148 | |
| 149 | Accepts the same arguments as os.system(). |
| 150 | |
| 151 | Parameters |
| 152 | ---------- |
| 153 | cmd : str or list |
| 154 | A command to be executed in the system shell. |
| 155 | |
| 156 | Returns |
| 157 | ------- |
| 158 | stdout : str |
| 159 | stderr : str |
| 160 | """ |
| 161 | return get_output_error_code(cmd)[:2] |
| 162 | |
| 163 | |
| 164 | def get_output_error_code(cmd: str | list[str]) -> tuple[str, str, int | None]: |
searching dependent graphs…