View Single Post
Old 03-27-2016, 06:48 PM   #734
JJanssen
Member
JJanssen began at the beginning.
 
Posts: 16
Karma: 24
Join Date: Jun 2009
Device: Kindle Paperwhite 1
Quote:
Originally Posted by eschwartz View Post
P.S. Change:
[...]
That way you use the default library path, instead of requiring users to modify the script.
I've changed it in the text up there, but I'm keeping my own hardcoded version on my disk

Quote:
EDIT: Noticing your edits, you seemed to be slightly confused at first what GPM is.
It isn't python, it is a cut-down mini-language that compiles to python and is documented in the calibre manual. You can however define new functions in python.
Yeah, I'm not sure why, but I read the documentation as "well, here's the templating stuff, but if you want to break out into actual python, here's how, use program:". I read the GPM functions docs as being GPM=*specific* additional functions, rather than as being all you can use.

Last edited by JJanssen; 03-27-2016 at 06:55 PM.
JJanssen is offline   Reply With Quote