View Single Post
Old 09-29-2014, 10:21 PM   #63
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,462
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can run any python script with calibre like this:

calibre-debug path/to/script.py

As for GUI, since DiapDealer has calibre versions of his plugins, presumably, it should not be hard to adapt to using PyQt instead of Tk.

On a personal note, I recommend you guys bundle python, at least on windows. It will make life a lot easier for your users.

And even on linux and os x there are no guarantees of the python environment available. What python libraries are present and what are not. For instance, on my Gentoo system I dont typically have the python Tk bindings installed. Not to mention the whole problem of python 2 vs 3. Different linux distros may or may not have either python 2 or 3. And since Sigil already distributes the Qt DLLs, it should be relatively easy to also distribute the PyQt bindings.

Then you can provide a consistent, platform independent python environment for your plugin developers and ease of use for your users.

While the goal of having the plugins work with any scripting language is laudable, that doesn't mean you cannot have a single, favored language.

Anyway, that is my opinion.
kovidgoyal is offline