Пример #1
0
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
Пример #2
0
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
Пример #3
0
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
Пример #4
0
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
Пример #5
0
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
Пример #6
0
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
Пример #7
0
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