mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:43:39 +02:00
...
This commit is contained in:
parent
a43e0b644e
commit
9d54c7b3b2
1 changed files with 7 additions and 3 deletions
|
|
@ -529,9 +529,13 @@ def load_actual_plugin(self, gui):
|
|||
'''
|
||||
This method must return the actual interface action plugin object.
|
||||
'''
|
||||
mod, cls = self.actual_plugin.split(':')
|
||||
return getattr(importlib.import_module(mod), cls)(gui,
|
||||
self.site_customization)
|
||||
ac = getattr(self, 'actual_plugin_', None)
|
||||
if ac is None:
|
||||
mod, cls = self.actual_plugin.split(':')
|
||||
ac = getattr(importlib.import_module(mod), cls)(gui,
|
||||
self.site_customization)
|
||||
self.actual_plugin_ = ac
|
||||
return ac
|
||||
|
||||
# }}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue