Make extn matching case-insensitive

Tue, 10 Feb 2009 14:12:39 +0000

author
andy
date
Tue, 10 Feb 2009 14:12:39 +0000
changeset 12
468dd1a77779
parent 11
4abc4961af49
child 13
32883d89ca7f

Make extn matching case-insensitive

emin file | annotate | diff | comparison | revisions
     1.1 --- a/emin	Tue Feb 10 13:46:38 2009 +0000
     1.2 +++ b/emin	Tue Feb 10 14:12:39 2009 +0000
     1.3 @@ -163,7 +163,7 @@
     1.4  import fnmatch
     1.5  for img in os.listdir(opts.SRCDIR):
     1.6      for e in EXTENSIONS:
     1.7 -        if fnmatch.fnmatch(img, e):
     1.8 +        if fnmatch.fnmatch(img.lower(), e):
     1.9              imgpath = os.path.join(opts.SRCDIR, img)
    1.10              imgs.append(imgpath)
    1.11              break

mercurial