mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
When running python scripts via calibre-debug ensure that user plugins are loaded
This commit is contained in:
parent
0bed231362
commit
e3b6564e44
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user