def loadAppPlugins(self):
        """load all of the application plugins"""
        #find all application plugins
        my_dir = os.path.dirname(__file__)
        for filename in os.listdir(my_dir):
            if not filename.endswith('.py'): continue
            if filename == '__init__.py': continue
            modname = filename[:-3]
            try:
                mod = __import__(__name__ + '.' + modname, {}, {}, [modname])
            except:
                err('Application Plugin Loader Caught Exception')
                continue #horribly broken module ... skipping
            for name,obj in vars(mod).items():
                if name in self._classMap: continue
                try:
                    #need the interfaces to be what we expect
                    if IDroneDApplication.implementedBy(obj):
                        self._classMap[name] = copy.deepcopy(obj)
                except __HOLE__: pass
                except:
                    err('Application Plugin Scanner Caught Exception')
dataset/ETHPy150Open OrbitzWorldwide/droned/droned/lib/droned/applications/__init__.py/_PluginFactory.loadAppPlugins