Open image files in alphabetical order.

This commit is contained in:
Andrey Golovizin 2014-08-25 13:49:31 +02:00
parent ce11d6e097
commit 9322bc1283

View file

@ -36,7 +36,7 @@ class OCREngine(QThread):
def __init__(self, dirname):
super().__init__()
self.dirname = dirname
self.filenames = glob(path.join(dirname, '*.png'))
self.filenames = sorted(glob(path.join(dirname, '*.png')))
self.glyphdb = GlyphDB(path.join(self.dirname, 'glyphdb.pickle'))
self.help_queue = Queue()