View Single Post
Old 01-01-2009, 02:26 PM   #32
junkml
Addict
junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.
 
junkml's Avatar
 
Posts: 277
Karma: 1004969
Join Date: Mar 2007
Device: Sony Reader
Quote:
Originally Posted by kovidgoyal View Post
Use subprocess, os.system is deprecated. Try using

Code:
subprocess.call('path to program', shell=True)
This works if I just do a script in pythonwin, but when I load a lit file to calibre, nothing happens.

I'm attaching the script I'm trying to use in case it's helpful to anyone.
Attached Files
File Type: zip runshell_plugin.zip (519 Bytes, 378 views)
junkml is offline   Reply With Quote