mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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
|
from calibre.constants import debug
|
||||||
debug()
|
debug()
|
||||||
if len(args) > 2 and args[1] in ('-e', '--exec-file'):
|
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:]
|
sys.argv = [args[2]] + args[3:]
|
||||||
ef = os.path.abspath(args[2])
|
ef = os.path.abspath(args[2])
|
||||||
base = os.path.dirname(ef)
|
base = os.path.dirname(ef)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user