A decorator to check if some executable files are installed. Example: >>> @requires_executable('ffmpeg') >>> func(arg1, args): >>> print(1) 1
(prerequisites)
| 255 | |
| 256 | |
| 257 | def requires_executable(prerequisites): |
| 258 | """A decorator to check if some executable files are installed. |
| 259 | Example: |
| 260 | >>> @requires_executable('ffmpeg') |
| 261 | >>> func(arg1, args): |
| 262 | >>> print(1) |
| 263 | 1 |
| 264 | """ |
| 265 | return check_prerequisites(prerequisites, checker=_check_executable) |
| 266 | |
| 267 | |
| 268 | def deprecated_api_warning(name_dict, cls_name=None): |
nothing calls this directly
no test coverage detected