Now that you can run:
Code:
calibre-debug --run-plugin ScrambleEbook ./path/to/mytroublesomebookthatneedshelp.epub
A couple things become possible:
- The standalone tool from https://www.mobileread.com/forums/sh...19#post3188419 could be simplified... it no longer needs to contain scrambleebook.py or that image folder, instead it can simply say "you must first install the plugin in calibre", then it can run the above command line.
- You can use:
Code:
from calibre.debug import run_calibre_debug
run_calibre_debug('--run-plugin', 'ScrambleEbook', ebook_file)
to call the plugin in another process.
Now that this works, once you can figure out how to run it using WebEngine
as a standalone script, you can change the plugin to call itself... as a standalone script.