Re: Using command line args on Windows

2005-10-09 Thread Tim Roberts
Duncan Booth <[EMAIL PROTECTED]> wrote: >Fredrik Lundh wrote: > >> footnote: if you'd prefer to type "myscript myarg" instead, you might >> want to check out this tool: >> >> http://effbot.org/zone/exemaker.htm > >or even just do: > >SET PATHEXT=.py;%PATHEXT% > >and then "myscript myarg"

Re: Using command line args on Windows

2005-10-06 Thread Duncan Booth
Fredrik Lundh wrote: >> I'm stuck on a Windows machine today and would love to fully play >> with and test a simple python script. I want to be able to type >> "python myscript myarg" somewhere. Is there anything out there to >> help me? > > footnote: if you'd prefer to type "myscript myarg" i

Re: Using command line args on Windows

2005-10-06 Thread Fredrik Lundh
"k8" wrote: > I'm stuck on a Windows machine today and would love to fully play with > and test a simple python script. I want to be able to type "python > myscript myarg" somewhere. Is there anything out there to help me? footnote: if you'd prefer to type "myscript myarg" instead, you might wa

Re: Using command line args on Windows

2005-10-06 Thread Diez B. Roggisch
k8 wrote: > Thank you thank you thank you- The windows command line sol worked. It sure does. But it sucks.. bad tab-completion, few tools, short history, limited command-line-editing and so on. But if you want it the hard way, it's your choice :) Diez -- http://mail.python.org/mailman/listinf

Re: Using command line args on Windows

2005-10-05 Thread k8
Thank you thank you thank you- The windows command line sol worked. -k8 -- http://mail.python.org/mailman/listinfo/python-list

Re: Using command line args on Windows

2005-10-05 Thread Diez B. Roggisch
k8 wrote: > Hello- > > I'm stuck on a Windows machine today and would love to fully play with > and test a simple python script. I want to be able to type "python > myscript myarg" somewhere. Is there anything out there to help me? My > main concern is playing with the myarg in the sys.argv lis

Re: Using command line args on Windows

2005-10-05 Thread Larry Bates
1) Start a command prompt window (Start-Programs-Accessories-Command Prompt) 2) Change to directory where the python program is stored (cd \) 3) Type python myscript.py myarg -Larry Bates k8 wrote: > Hello- > > I'm stuck on a Windows machine today and would love to fully play with > and t

RE: Using command line args on Windows

2005-10-05 Thread Michael . Coll-Barth
I'll assume that you are not familiar with Windows, so forgive me if you know this. 1) Go to a command prompt. The location of this depends on which OS you are running. But, you can go to Start / Run... and type in cmd or command. This will give you a window with a 'DOS' prompt. 2) Type pat