"Harris, Sarah L" <sarah.l.har...@jpl.nasa.gov> wrote
fname=filter(isfile, glob.glob('*.zip')) for fname in fname:
This will confuse things. fname starts off as a list of files and then becomes a single filename inside the loop. It's never a good idea to duplicate variable names like that. It also means that after the loop completes fname referes only to the last filename, the list has gone.
zipnames=filter(isfile, glob.glob('*.zip')) for zipname in zipnames: This is much better. HTH, Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor