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