def METHOD_NAME(path):
    # Will capture much more strings than just icon names, but that is OK,
    # we match them against actual icons in the theme when filtering, so the
    # noise drops out
    names = set()
    for dirpath, dirnames, filenames in os.walk(path):
        for filename in filenames:
            if filename.endswith('.py'):
                code = open(dirpath + '/' + filename).read()
                for match in re.findall('[\'"]\w+(?:-\w+)+[\'"]', code):
                    names.add(match[1:-1])
    assert len(names) > 0, 'Did not find any potential icon names in %s ?' % path
    return names