def subcmd_debug_flavors(config, cargs):
    flavors = ZincFlavorSpec.from_path(cargs.flavors)
    for flavor_name in flavors.flavors:
        print '[%s]' % flavor_name
        filter = flavors.filter_for_flavor(flavor_name)
        src_dir = cargs.path
        for root, dirs, files in os.walk(src_dir):
            for f in files:
                #if f in IGNORE: continue # TODO: integrate ignore system
                rel_dir = root[len(src_dir) + 1:]
                rel_path = os.path.join(rel_dir, f)
                matched = filter.match(rel_path)
                print '%s %s' % ('+' if matched else '-', rel_path)
        print ""  # blank line


### Main #####################################################################
dataset/ETHPy150Open mindsnacks/Zinc/src/zinc/cli.py/subcmd_debug_flavors/original