コード例 #1
0
ファイル: ui.py プロジェクト: yeyanchao/calibre
 def load_store_plugins(self):
     self.istores = OrderedDict()
     for store in available_store_plugins():
         if self.opts.ignore_plugins and store.plugin_path is not None:
             continue
         try:
             st = self.init_istore(store)
             self.add_istore(st)
         except:
             # Ignore errors in loading user supplied plugins
             import traceback
             traceback.print_exc()
             if store.plugin_path is None:
                 raise
             continue
コード例 #2
0
 def load_store_plugins(self):
     self.istores = OrderedDict()
     for store in available_store_plugins():
         if self.opts.ignore_plugins and store.plugin_path is not None:
             continue
         try:
             st = self.init_istore(store)
             self.add_istore(st)
         except:
             # Ignore errors in loading user supplied plugins
             import traceback
             traceback.print_exc()
             if store.plugin_path is None:
                 raise
             continue
コード例 #3
0
ファイル: ui.py プロジェクト: sportsbite/calibre
 def load_store_plugins(self):
     from calibre.gui2.store.loader import Stores
     self.istores = Stores()
     for store in available_store_plugins():
         if self.opts.ignore_plugins and store.plugin_path is not None:
             continue
         try:
             st = self.init_istore(store)
             self.add_istore(st)
         except:
             # Ignore errors in loading user supplied plugins
             import traceback
             traceback.print_exc()
             if store.plugin_path is None:
                 raise
             continue
     self.istores.builtins_loaded()
コード例 #4
0
ファイル: ui.py プロジェクト: KyoYang/calibre
 def load_store_plugins(self):
     from calibre.gui2.store.loader import Stores
     self.istores = Stores()
     for store in available_store_plugins():
         if self.opts.ignore_plugins and store.plugin_path is not None:
             continue
         try:
             st = self.init_istore(store)
             self.add_istore(st)
         except:
             # Ignore errors in loading user supplied plugins
             import traceback
             traceback.print_exc()
             if store.plugin_path is None:
                 raise
             continue
     self.istores.builtins_loaded()