passing a shell argument
oki mikito
oki at gk-a.com
Tue Jun 3 10:08:05 EDT 2003
Hi,
sorry for wating the bandwidth; I just found the solution myself:
#!/usr/bin/python
import sys
arg1 = sys.argv[1]
.....
.....
.....
On Tuesday, Jun 3, 2003, at 22:41 Japan, oki mikito wrote:
> Hi
>
> I wonder if there's a simple way to pass a shell argument in a tcsh
> environment... something like:
>
> [~/bin] moki% process1 ./*.txt
>
> I'm currently using `raw_input`, and at each execution of the python
> script I type in the file name... & you know how painful it is.
>
> I looked into the os bunch & found nothing. Could someone guide me to
> the correct path??? Thank you very much in advance!
>
> Yours,
>
> Oki Mikito
>
> ==
> Oki Mikito
> GK Associates, Inc.
> oki at gk-a.com
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
==
Oki Mikito
GK Associates, Inc.
oki at gk-a.com
More information about the Python-list
mailing list