def format_output_filename(filename, config):
    (p, f) = os.path.split(filename)
    if config['Global']['prependID']:
        f = prependID(f, config)
    if config['Global']['prependDate']:
        f = prependDate(f)
    filename = ((p + '/') + f)
    return filename
def format_output_filename(filename, config):
    (p, f) = os.path.split(filename)
    if config['Global']['prependID']:
        f = prependID(f, config)
    if config['Global']['prependDate']:
        f = prependDate(f)
    filename = ((p + '/') + f)
    return filename