(cmd, cwd=None)
| 130 | |
| 131 | |
| 132 | def run(cmd, cwd=None): |
| 133 | try: |
| 134 | output = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT, cwd=cwd) |
| 135 | except subprocess.CalledProcessError as e: |
| 136 | print(e.output.decode('utf-8')) |
| 137 | raise e |
| 138 | return output.decode('utf-8') |
| 139 | |
| 140 | def update_file(filename, line_re, edit): |
| 141 | infile = open(filename, 'r') |
no test coverage detected