Get path to mkvmerge if available on the current system by checking PATH. Returns None if mkvmerge couldn't be found.
()
| 292 | |
| 293 | |
| 294 | def get_mkvmerge_path() -> str | None: |
| 295 | """Get path to mkvmerge if available on the current system by checking PATH. Returns None if |
| 296 | mkvmerge couldn't be found.""" |
| 297 | try: |
| 298 | subprocess.call(["mkvmerge", "--quiet"]) |
| 299 | return "mkvmerge" |
| 300 | except OSError: |
| 301 | return None |
| 302 | |
| 303 | |
| 304 | def get_mkvmerge_version() -> str | None: |
no outgoing calls
no test coverage detected