Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/o/c/ochDownloader-HEAD/qt/downloads.py   ochDownloader(Download)
    def get_host_icon(self, host):
        try:
            return self.icons_dict[host]
        except KeyError:
            self.icons_dict[host] = QPixmap(os.path.join(cons.PLUGINS_PATH, host.replace('.', '_'), "favicon.ico"))

src/o/c/ochDownloader-HEAD/core/plugin/config.py   ochDownloader(Download)
    def load_plugins_config(self):
        try:
            for module_loader, plugin, ispkg in pkgutil.iter_modules(path=[cons.PLUGINS_PATH, ]):
                path = os.path.join(cons.PLUGINS_PATH, plugin, cons.PLUGIN_CONFIG_FILE)
                plugin = plugin.replace('_', '.')
            return self.services_dict[plugin]
        except KeyError:
            path = os.path.join(cons.PLUGINS_PATH, plugin, cons.PLUGIN_CONFIG_FILE)
            plugin_config = _PluginConfig(path)
            self.services_dict[plugin] = plugin_config