View Single Post
Old 09-12-2019, 11:03 PM   #28
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
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.

Last edited by eschwartz; 09-12-2019 at 11:10 PM.
eschwartz is offline   Reply With Quote