Using command line args on Windows
Larry Bates
larry.bates at websafe.com
Wed Oct 5 16:53:14 EDT 2005
1) Start a command prompt window
(Start-Programs-Accessories-Command Prompt)
2) Change to directory where the python program is stored
(cd \<path-where-script-stored>)
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 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 list. I've been
> mucking around with IDLE without much success.
>
More information about the Python-list
mailing list