(self, cmd: str)
| 92 | return command |
| 93 | |
| 94 | def get_input_data(self, cmd: str): |
| 95 | if self.input: |
| 96 | with open(self.input, "rb") as f: |
| 97 | input_data = f.read() |
| 98 | else: |
| 99 | input_data = bytearray(cmd, "utf8") |
| 100 | return input_data |
| 101 | |
| 102 | def get_output_pipe(self): |
| 103 | output_pipe = subprocess.PIPE |