View Single Post
Old 09-30-2014, 10:52 AM   #71
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,423
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@KevinH: Fixing sys.argv is trivial, if you want I can send you some code for it. Or just use this years old recipe: http://code.activestate.com/recipes/572200/

As for multiprocessing, just dont use it. There is no need to to use it. All of calibre, which makes extensive use of worker processes never uses it. You can simply use the Listender and Client classes from the multiprocessing module to implement IPC between processes you launch with subprocess.Popen
kovidgoyal is offline