[Tutor] fnmatch -or glob question

Kent Johnson kent37 at tds.net
Sat Jul 4 04:25:17 CEST 2009

On Fri, Jul 3, 2009 at 8:24 PM, Damon Timm<damontimm at gmail.com> wrote:

> And I thought I could just construct something for glob or fnmatch like:
> glob.glob("DSC_0065*.jpg") --or-- fnmatch.fnmatch(file, "DSC_0065*.jpg")

Do you have the working directory set to the folder with the jpgs in
it? If not, you have to give the full path to glob().


More information about the Tutor mailing list