def find_type_dirs(root, filetypes):
    if type(filetypes) is str:
        filetypes = (filetypes,)

    #TODO: remove duplicates
    return [path for path, _, files in os.walk(root) 
            if any([os.path.splitext(f)[1] in filetypes for f in files])]
Object initialization.
dataset/ETHPy150Open blitzrk/sublime_libsass/libsass/pathutils.py/find_type_dirs--crossover with--dataset/ETHPy150Open openstack/neutron/neutron/wsgi.py/Resource.__init__