From 91e3a94c3dbdae3221f174acce6adda8fd37ae9a Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Fri, 2 Jul 2021 16:18:20 +0200 Subject: [PATCH] sort globbing result on windows --- src/img2pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/img2pdf.py b/src/img2pdf.py index 8407221..4b8d1c0 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -2414,7 +2414,7 @@ def input_images(path_expr): # paths without wildcards that do not exist will trigger "does not exist" from glob import glob - paths = glob(path_expr) + paths = sorted(glob(path_expr)) for path in paths: try: if os.path.getsize(path) == 0: