On Mon, Feb 9, 2009 at 9:29 PM, Eric Dorsey <dors...@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.... m...@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
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor