View Single Post
Old 04-28-2012, 10:45 AM   #2
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Absolute simplest approach (assuming you are talking out of process non Python executable you are calling) would be to write the result to a temp file. I would have the calling code in calibre create the temp file using calibre's temp file functions, pass the filename to your process along with whatever other data it needs, it writes to the file and exits, then the calibre code reads the file for the result.

Simpler than heading down the route of IPC using named pipes or whatever...
kiwidude is offline   Reply With Quote