QJSEngine is not used by calibre. So there is no reason to include the PyQt module, it just wastes space. If you want to run JS from python use QWebEnginePage, see rapyscript.py for an example of doing this. Note that you cannot use QWebEngine in the main calibre process because it needs to be imported before QApplication is constructed, so you will need to fork a worker process to do it.
|