[Tutor] IDLE vs PythonWin

W W srilyk at gmail.com
Tue Feb 10 12:44:32 CET 2009


On Mon, Feb 9, 2009 at 9:29 PM, Eric Dorsey <dorseye at gmail.com> wrote:

> You can call a .py script from the command line, and it will run there. So,
> in Windows XP: Start > Run > type "CMD"
> Vista: Start > type "CMD" into the Start Search field.
> If you're in Linux, get to a Terminal.
> In Windows another window will open with something
> like...C:\FolderWithMyPyFile>
> Linux something like.... me at ubuntu-desktop:~$
>
> Assuming "uberprogram.py" is in the current folder, you can then just type
> into the command prompt like C:\FolderWithMyPyFile>uberprogram <then hit
> enter>
>
> You can see the results of the program right in the command prompt/terminal
> window.
>

Unless your program doesn't wait for any input before quitting.Then you just
have to add a line like this:

raw_input("Press <ENTER> to quit")

and that will block until you hit return.
-Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090210/8edfb021/attachment.htm>


More information about the Tutor mailing list