Thank you very much! I really appreciate the help. :)
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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+