forked from josch/img2pdf
sort globbing result on windows
This commit is contained in:
parent
3d7e0e6812
commit
91e3a94c3d
1 changed files with 1 additions and 1 deletions
|
@ -2414,7 +2414,7 @@ def input_images(path_expr):
|
||||||
# paths without wildcards that do not exist will trigger "does not exist"
|
# paths without wildcards that do not exist will trigger "does not exist"
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
|
||||||
paths = glob(path_expr)
|
paths = sorted(glob(path_expr))
|
||||||
for path in paths:
|
for path in paths:
|
||||||
try:
|
try:
|
||||||
if os.path.getsize(path) == 0:
|
if os.path.getsize(path) == 0:
|
||||||
|
|
Loading…
Reference in a new issue