(command, *, check=0, capture=1)
| 47 | os.makedirs(f'{testdir}/one/two', exist_ok=1) |
| 48 | |
| 49 | def run(command, *, check=0, capture=1): |
| 50 | print(f'Running: {command}') |
| 51 | cp = subprocess.run( |
| 52 | command, shell=1, |
| 53 | text=1, |
| 54 | check=check, |
| 55 | stdout=subprocess.PIPE if capture else None, |
| 56 | stderr=subprocess.STDOUT if capture else None, |
| 57 | ) |
| 58 | print(cp.stdout) |
| 59 | return cp |
| 60 | |
| 61 | def get_paths(): |
| 62 | paths = list() |