'Load LangInfo classes in langinfo_*.py modules in this dir.'

def _load_dir(self, d):

    for path in glob(join(d, 'langinfo_*.py')):
        try:
            module = _module_from_path(path)
        except Exception as ex:
            log.warn("could    not    import    `%s':    %s", path, ex)
            continue
        for name in dir(module):
            attr = getattr(module, name)
            if ((not name.startswith('_')) and isinstance(attr, (types.ClassType, types.TypeType)) and issubclass(attr, LangInfo) and (attr is not LangInfo)):
                norm_lang = self._norm_lang_from_lang(attr.name)
                self._langinfo_from_norm_lang[norm_lang] = attr(self)
