Re: Oserror: [Errno 20]

2006-04-03 Thread k r fry
Thank you very much! I really appreciate the help. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Oserror: [Errno 20]

2006-04-03 Thread k r fry
Thank you very much! *embarassed*. :-) Ben Thul wrote: > I think that if you go back and look at the original reply, he spelled > it "isdir"...;) > > --Ben > k r fry wrote: > >> Again, I apologise. Not knowing much about Python means that I don't

Re: Oserror: [Errno 20]

2006-04-03 Thread k r fry
subdir in os.path.listdir(DATADIR): #loop through list of strings and here is what I get: Traceback (most recent call last): File "katiescint.py", line 153, in ? for subdir in os.path.listdir(DATADIR): #loop through list of strings AttributeError

Re: Oserror: [Errno 20]

2006-04-03 Thread k r fry
r: 'module' object has no attribute 'istdir' I did think maybe it was meant to be "listdir" instead of "istdir", but that doesn't work either. Sorry to be a pain. Peter Hansen wrote: > k r fry wrote: > >> Hi, I am new to this list and als

Oserror: [Errno 20]

2006-04-03 Thread k r fry
Hi, I am new to this list and also programming with python. I have an error: oserror [errno 20] not a directory "katiescint.py" The piece of code causing the problem is: [code] for subdir in os.listdir(DATADIR): #loop through list of strings file=FITS.Read(DATADIR+'/'+subdir+