def config_program_reqs(cls, programs):
        """Run the program tester and determine if we can do anything."""
        cls._set_program_defaults(programs)

        do_png = cls.optipng or cls.pngout or cls.advpng
        do_jpeg = cls.mozjpeg or cls.jpegrescan or cls.jpegtran

        do_comics = cls.comics

        if not do_png and not do_jpeg and not do_comics:
            print("All optimizers are not available or disabled.")
            exit(1)
def config_program_reqs ( cls , programs ) : cls . _set_program_defaults ( programs ) do_png = cls . optipng or cls . pngout or cls . advpng do_jpeg = cls . mozjpeg or cls . jpegrescan or cls . jpegtran do_comics = cls . comics if not do_png and not do_jpeg and not do_comics : print ( "All optimizers are not available or disabled." ) exit ( 1 )
Run the program tester and determine if we can do anything.