def ready(): """Check whether binaries we need can be executed.""" ok = True ok &= flaclib.check_binary([flaccfg.BIN_OGG, '-h'], 'Usage: oggenc', loud=True) ok &= flaclib.check_binary([flaccfg.BIN_FLAC, '-v'], r'flac ([0-9\.]+)', loud=True) return ok
def ready(): """ Check whether binaries we need can be executed. """ ok = True ok &= flaclib.check_binary([flaccfg.BIN_LAME, '--version'], "LAME (\d\dbits )?version ([0-9\.]+)", loud=True) ok &= flaclib.check_binary([flaccfg.BIN_FLAC, '-v'], "flac ([0-9\.]+)", loud=True) return ok
def ready(): """ Check whether binaries we need can be executed. """ ok = True ok &= flaclib.check_binary([flaccfg.BIN_OPUS, '--version'], "opusenc opus-tools", loud=True) ok &= flaclib.check_binary([flaccfg.BIN_FLAC, '-v'], "flac ([0-9\.]+)", loud=True) return ok
def ready(): """ The ready() method checks that all the binaries this module requires can be executed, and returns True if they can. """ ok = True ok &= flaclib.check_binary(['faac'], r'FAAC [0-9\.]+', loud=True) ok &= flaclib.check_binary([flaccfg.BIN_FLAC, '-v'], r'flac [0-9\.]+', loud=True) return ok