mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GUI Convert: fix import of input widget.
This commit is contained in:
parent
742e5f9f1a
commit
a48cefc82b
@ -153,9 +153,10 @@ class Config(ResizableDialog, Ui_Dialog):
|
||||
except ImportError:
|
||||
pass
|
||||
input_widget = None
|
||||
name = self.plumber.input_plugin.name.lower().replace(' ', '_')
|
||||
name = 'calibre.gui2.convert.%s' % self.plumber.input_plugin.name.lower().replace(' ', '_')
|
||||
try:
|
||||
input_widget = __import__(name)
|
||||
__import__(name)
|
||||
input_widget = sys.modules[name]
|
||||
pw = input_widget.PluginWidget
|
||||
pw.ICON = ':/images/forward.svg'
|
||||
pw.HELP = _('Options specific to the input format.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user