Sort scripts loading order

This commit is contained in:
Hanusz Leszek 2022-09-29 01:22:56 +02:00 committed by AUTOMATIC1111
parent 66fed8ffb8
commit e9919f2ab7

View File

@ -55,7 +55,8 @@ def load_scripts(basedir):
if not os.path.exists(basedir):
return
for filename in os.listdir(basedir):
for filename in sorted(os.listdir(basedir)):
print(f"Loading script: {filename}")
path = os.path.join(basedir, filename)
if not os.path.isfile(path):