View Single Post
Old 07-17-2011, 01:57 PM   #31
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Agama View Post
Before I start on a plugin I am learning Python from the "Dive into Python" book. I have downloaded the sample .py files but I can't work out how to run one. Double-clicking just opens it in my text editor, so do I need to make a new association for .py files or is there a way to run one from a command prompt?
Ahh, you want to run python files that have nothing to do with calibre. This is when you need to install python.

You could do it with calibre-debug and use calibre's python, but it would be rather painful.

Edit: and you may need to make an association. Also, you should run these from the command line or you will never see the output. python foo.py will work once python is installed.
chaley is offline   Reply With Quote