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)