コード例 #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
ファイル: xfmvorbis.py プロジェクト: mdickers47/flacenstein
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
ファイル: xfmmp3.py プロジェクト: mdickers47/flacenstein
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
ファイル: xfmopus.py プロジェクト: mdickers47/flacenstein
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
ファイル: xfmopus.py プロジェクト: mdickers47/flacenstein
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
ファイル: xfmmp3.py プロジェクト: mdickers47/flacenstein
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