Extra Newby question - Trying to create md5 File Listing

Simon Brunning simon at brunningonline.net
Wed Sep 27 11:36:27 EDT 2006


On 9/27/06, James Johnston <jxjohns at lifeway.com> wrote:
>
> I've never written a Python program before and I'm trying to read a config
> file with file path/names (eg. c:\\python24\\*.dll, ... *.exe) to create an
> output file of filename + md5 values.  I'm confused.  I'm trying to learn
> how to use Wing IDE and step through the Stack Data.  It seems to be
> working but on the
>
> [INDENT]for fn in filelist:
>   data = file(fn,'rb').read() [/INDENT]
>
> I get a
>
> [INDENT]IOError: (2, 'No such file or directory', 'c')

Why not put a "print fn" line in just before the open, so you can see
what it's choking on?

-- 
Cheers,
Simon B,
simon at brunningonline.net



More information about the Python-list mailing list