Oserror: [Errno 20]

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Mon Apr 3 09:10:23 EDT 2006


k r fry enlightened us with:
> Traceback (most recent call last):
>    File "katiescint.py", line 153, in ?
>      for subdir in os.path.listdir(DATADIR):              #loop through 
> list of strings
> AttributeError: 'module' object has no attribute 'listdir'

But why do you use that function then? listdir is in the module os,
not in os.path.

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list