import os import subprocess subprocess.run("which wkhtmltoimage", capture_output=True)