how do I run a script with a command line

Emile van Sebille emile at fenx.com
Sun Jan 28 10:09:23 EST 2001


Without knowing how you've got things installed, what you
can do is enter the fully qualified path name to the python
interpreter and your script.  On my win95 box, this looks
like:

[Windows 95] C:\>d:\python20\python d:\python20\test.py 1 2
3
['d:\\python20\\test.py', '1', '2', '3']

where d:\python20\test.py is:

import sys
print sys.argv

HTH

--

Emile van Sebille
emile at fenx.com
-------------------


"shaka" <fabrice.n at home.com> wrote in message
news:n4Wc6.5571$KP3.2194321 at news3.rdc1.on.home.com...
>
> It's my first time to use python. And I have win98. I
don't know how to run
> a script with the command line, it always come in
interactive mode.
> How do I input my arguments?
>
>





More information about the Python-list mailing list