Re: [Tutor] A question about sys.argv

2011-11-01 Thread Dave Angel
On 11/01/2011 10:19 AM, Jose Amoreira wrote: HiOn Tuesday, November 01, 2011 01:55:18 PM Joel Goldstick wrote: On Tue, Nov 1, 2011 at 9:48 AM, Jefferson Ragot wrote: In a Vista command prompt if I typed this: >>> python somescript.py filename Will sys.argv[1] return a valid path o

Re: [Tutor] A question about sys.argv

2011-11-01 Thread Dave Angel
On 11/01/2011 10:05 AM, Hugo Arts wrote: On Tue, Nov 1, 2011 at 2:48 PM, Jefferson Ragot wrote: In a Vista command prompt if I typed this: >>> python somescript.py filename Will sys.argv[1] return a valid path or just the filename? If it just returns the filename, is there a simpl

Re: [Tutor] A question about sys.argv

2011-11-01 Thread Jose Amoreira
HiOn Tuesday, November 01, 2011 01:55:18 PM Joel Goldstick wrote: > On Tue, Nov 1, 2011 at 9:48 AM, Jefferson Ragot wrote: > > In a Vista command prompt if I typed this: > > >>> python somescript.py filename > > > > Will sys.argv[1] return a valid path or just the filename? > > If it ju

Re: [Tutor] A question about sys.argv

2011-11-01 Thread Hugo Arts
On Tue, Nov 1, 2011 at 2:48 PM, Jefferson Ragot wrote: > In a Vista command prompt if I typed this: > >     >>> python  somescript.py  filename > > Will sys.argv[1] return a valid path or just the filename? > If it just returns the filename, is there a simple way to get the path? > sys.argv c

Re: [Tutor] A question about sys.argv

2011-11-01 Thread Joel Goldstick
On Tue, Nov 1, 2011 at 9:48 AM, Jefferson Ragot wrote: > In a Vista command prompt if I typed this: > > >>> python somescript.py filename > > Will sys.argv[1] return a valid path or just the filename? > If it just returns the filename, is there a simple way to get the path? > > -- > Jef

[Tutor] A question about sys.argv

2011-11-01 Thread Jefferson Ragot
In a Vista command prompt if I typed this: >>> python somescript.py filename Will sys.argv[1] return a valid path or just the filename? If it just returns the filename, is there a simple way to get the path? -- Jefferson B. Ragot ___ Tutor m