mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9d54c7b3b2
commit
d1289664b0
@ -525,11 +525,15 @@ class InterfaceActionBase(Plugin): # {{{
|
||||
|
||||
actual_plugin = None
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
Plugin.__init__(self, *args, **kwargs)
|
||||
self.actual_plugin_ = None
|
||||
|
||||
def load_actual_plugin(self, gui):
|
||||
'''
|
||||
This method must return the actual interface action plugin object.
|
||||
'''
|
||||
ac = getattr(self, 'actual_plugin_', None)
|
||||
ac = self.actual_plugin_
|
||||
if ac is None:
|
||||
mod, cls = self.actual_plugin.split(':')
|
||||
ac = getattr(importlib.import_module(mod), cls)(gui,
|
||||
|
Loading…
x
Reference in New Issue
Block a user