When running python scripts via calibre-debug ensure that user plugins are loaded

This commit is contained in:
Kovid Goyal 2012-05-20 16:16:37 +05:30
parent 0bed231362
commit e3b6564e44

View File

@ -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)