|
Ok, let's say I create a simple python script and save it on my desktop. You need to figure out the full path to the file. If your windows login name is nissan and the script is named hello.py, the full path is probably c:\documents and settings\nissan\desktop\hello.py.
Now open a console window by clicking Start, then Run, then typing "cmd.exe" and clicking Ok. Change into the Python directory by typing "cd \program files\python24" or where ever you installed Python.
Now run the script by typing "python c:\documents and settings\nissan\desktop\hello.py".
But really, why do it the hard way? Find your script, right-click on it and select "Edit with IDLE". It will open two windows, one text editor with your script and another with the interpreter. From the editor, click on Run >> Run Module. Much easier!
|