mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-31 02:55:19 -04:00
When running python scripts via calibre-debug ensure that user plugins are loaded
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user