sys.argv problem in Win 2k
Anand B Pillai
abpillai at lycos.com
Sat Apr 26 07:24:02 EDT 2003
Well I was hoping that would fix it!
I tried
Python.File=D:\Python22\python.exe "%1" %*
and
Python.File=D:\Python22\python.exe "%*"
and another 2 combinations,
But still I cannot pass the cmd line arguments!
Let me try and figure out myself :-O
ABP
Duncan Booth <duncan at NOSPAMrcp.co.uk> wrote in message news:<Xns9368583183AC8duncanrcpcouk at 127.0.0.1>...
> I wrote:
> >> D:\temp>ftype Python.File
> >> Python.File=D:\Python22\python.exe "%1" %*
>
> abpillai at lycos.com (Anand B Pillai) wrote in
> news:bd993a2f.0304242310.586305df at posting.google.com:
>
> > F:\users\anand\LocalWorkspaces\ResModWS>ftype Python.File
> > Python.File=D:\Python22\python.exe "%1"
> >
>
> Spot the difference.
>
> The "%1" passes the name of the script to python.exe, the %* passes all the
> other arguments. Without the %* windows will simply drop the other
> arguments on the floor.
More information about the Python-list
mailing list