From e3b6564e44eb979a60bb96ca3a8a8c0b84caaa34 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 20 May 2012 16:16:37 +0530 Subject: [PATCH] When running python scripts via calibre-debug ensure that user plugins are loaded --- src/calibre/debug.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/debug.py b/src/calibre/debug.py index aa0bb1b2a8..856f85b550 100644 --- a/src/calibre/debug.py +++ b/src/calibre/debug.py @@ -182,6 +182,9 @@ def main(args=sys.argv): from calibre.constants import debug debug() if len(args) > 2 and args[1] in ('-e', '--exec-file'): + import calibre.customize.ui as dummy # Load allplugins + dummy + sys.argv = [args[2]] + args[3:] ef = os.path.abspath(args[2]) base = os.path.dirname(ef)