Quote:
Originally Posted by eschwartz
Perfect! So I'd advise that, then. e.g. let the plugin be able to run with calibre-debug --run-plugin entry points, accepting the path of the ebook to scramble. Make the GUI element simply figure out the path to the book to be scrambled, and use run_calibre_debug to spawn a new instance of the plugin which is set up to do webengine stuff.
|
You could be onto something here. The standalone version is just a single scrambleebook.py file (exact same file as in the plugin) plus a .bat containing
Code:
set ProgDir=%~dp0
calibre-debug "%ProgDir%scrambleebook.py" %1
I feel I may already have all the right pieces of code ... but not necessarily in the right order, or place, as yet