mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:43:38 +02:00
Add an --ignore-plugins option to calibre.exe
This commit is contained in:
parent
b2ad17d7ff
commit
9c53adfbb9
2 changed files with 5 additions and 0 deletions
|
|
@ -34,6 +34,9 @@ def option_parser():
|
|||
help=_('Log debugging information to console'))
|
||||
parser.add_option('--no-update-check', default=False, action='store_true',
|
||||
help=_('Do not check for updates'))
|
||||
parser.add_option('--ignore-plugins', default=False, action='store_true',
|
||||
help=_('Ignore custom plugins, useful if you installed a plugin'
|
||||
' that is preventing calibre from starting'))
|
||||
return parser
|
||||
|
||||
def init_qt(args):
|
||||
|
|
|
|||
|
|
@ -103,6 +103,8 @@ def __init__(self, opts, parent=None, gui_debug=None):
|
|||
self.gui_debug = gui_debug
|
||||
acmap = OrderedDict()
|
||||
for action in interface_actions():
|
||||
if opts.ignore_plugins and action.plugin_path is not None:
|
||||
continue
|
||||
try:
|
||||
ac = action.load_actual_plugin(self)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in a new issue