View Single Post
Old 10-05-2008, 09:00 AM   #13
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by JSWolf View Post
To run a Python script under Windows....

1. go to http://www.python.org
2. download and install the latest version of Python
3. open a command prompt
4. scriptname.py options
5. done
FYI: To do step 4 you would need to be in the directory where the python script is. Also, if a filename happens to be one or more of the options and the file isn't in the current directory you would have to pass in the path to it. The path could be relative or full. If any of your parameters/options has a space in it you need to surround it with quotes. Which is why i try to avoid putting spaces in what I consider a work folder.

One thing that would make this easier is to put the folder that the python script is in into your path. This could eliminate typing in paths... either a path to the script or a path to an option.

BOb
pilotbob is offline   Reply With Quote