I don't have Python on Windows and didn't want to make any assumptions
about the way the Windows shell passes parameters. Sorry again for being
trivial.
On Sun, 2005-12-04 at 09:00 +, Alan Gauld wrote:
> > My question is: when invoking a program with, let's say, a filename
> > containing space
On Sat, 2005-12-03 at 17:23 -0800, Danny Yoo wrote:
>
> > > My question is: when invoking a program with, let's say, a filename
> > > containing spaces as a parameter:
> > >
> > > myprog -file "Long name"
> > >
> > > What does sys.argv hold in this case? I am specifically interested in
> > > wheth
> My question is: when invoking a program with, let's say, a filename
> containing spaces as a parameter:
>
> myprog -file "Long name"
>
> What does sys.argv hold in this case?
What did you get when you tried it?
I ran:
###test.py ##
import sys
print sys.argv
###
p
> > My question is: when invoking a program with, let's say, a filename
> > containing spaces as a parameter:
> >
> > myprog -file "Long name"
> >
> > What does sys.argv hold in this case? I am specifically interested in
> > whether argv[2]=="\"Long" or argv[2]=="Long name",
Hi Vlad,
What you'
Vlad Popescu schrieb:
> Hi there, everyone; first time poster! Sorry if this isn't very closely
> related to Python, but I have encountered the issue while trying to
> learn Python, so I guess I can just ask here.
>
> My question is: when invoking a program with, let's say, a filename
> containing
Hi there, everyone; first time poster! Sorry if this isn't very closely
related to Python, but I have encountered the issue while trying to
learn Python, so I guess I can just ask here.
My question is: when invoking a program with, let's say, a filename
containing spaces as a parameter:
myprog -f