1
0
Fork 0
forked from josch/img2pdf

sort globbing result on windows

This commit is contained in:
Johannes Schauer Marin Rodrigues 2021-07-02 16:18:20 +02:00
parent 3d7e0e6812
commit 91e3a94c3d
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -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: