Open johngrabner opened 4 years ago
I believe that the right fix is to change this:
file_list = [f for f in os.listdir(img_dir) if os.path.isfile(os.path.join(img_dir, f))]
into that:
file_list = sorted([f for f in os.listdir(img_dir) if os.path.isfile(os.path.join(img_dir, f))])
adding
will demonstrate the items can arrive out of order, as they did on my system.
a brute force fix