Re: problem with listdir

2008-04-27 Thread castironpi
On Apr 27, 1:57 am, David <[EMAIL PROTECTED]> wrote: > On Sat, Apr 26, 2008 at 7:56 PM, jimgardener <[EMAIL PROTECTED]> wrote: > > >  > * Run cmd.exe and see if you can run "dir > > f:\\code\\python\pgmgallery/*.*" > > >  that causes a message 'Invalid switch - "*.*".' > > Probably because on the

Re: problem with listdir

2008-04-26 Thread David
On Sat, Apr 26, 2008 at 7:56 PM, jimgardener <[EMAIL PROTECTED]> wrote: > > > * Run cmd.exe and see if you can run "dir f:\\code\\python\pgmgallery/*.*" > > > > that causes a message 'Invalid switch - "*.*".' > > Probably because on the command-line, / means a command-line option. Been a while

Re: problem with listdir

2008-04-26 Thread jimgardener
> * Run cmd.exe and see if you can run "dir f:\\code\\python\pgmgallery/*.*" > that causes a message 'Invalid switch - "*.*".' > * Try using other directories under F: drive in your program and see> when > you start hitting the problem. i tried that..on some directories in the same drive this

Re: problem with listdir

2008-04-26 Thread Kam-Hung Soh
On Sat, 26 Apr 2008 19:07:45 +1000, Francesco Bochicchio <[EMAIL PROTECTED]> wrote: On Sat, 26 Apr 2008 01:24:23 -0700, jimgardener wrote: hi i have a directory containing .pgm files of P5 type.i wanted to read the pixel values of these files ,so as a firststep i wrote code to make a list

Re: problem with listdir

2008-04-26 Thread Francesco Bochicchio
On Sat, 26 Apr 2008 01:24:23 -0700, jimgardener wrote: > hi > i have a directory containing .pgm files of P5 type.i wanted to read > the pixel values of these files ,so as a firststep i wrote code to > make a list of filenames using listdir > > pgmdir="f:\code\python\pgmgallery" # where i have

Re: problem with listdir

2008-04-26 Thread David
> > i get the following error > WindowsError: [Error 123] The filename, directory name, or volume > label syntax is incorrect: 'f:\\code\\python\pgmgallery/*.*' > > i am running python on winXP ..can anyone tell me why i get this > error? > -- >From some Googling, it looks like this error ca

problem with listdir

2008-04-26 Thread jimgardener
hi i have a directory containing .pgm files of P5 type.i wanted to read the pixel values of these files ,so as a firststep i wrote code to make a list of filenames using listdir pgmdir="f:\code\python\pgmgallery" # where i have pgm files g2=listdir(pgmdir) i get the following error WindowsError