(cmd)
| 45 | |
| 46 | def test_command(cmd): |
| 47 | try: |
| 48 | subprocess.run(cmd, capture_output=True) |
| 49 | except FileNotFoundError as error: |
| 50 | logging.error(f"ERROR: '{cmd[0]}' not found. Please install it.") |
| 51 | raise error |
| 52 | |
| 53 | def file_type(path): |
| 54 | # is the file at path an audio file, video file, or neither? |
| 55 | return subprocess.run( |