View Single Post
Old 04-28-2012, 10:45 AM   #2
kiwidude
Calibre Plugins 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,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
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