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): if not os.path.exists(basedir):
return 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) path = os.path.join(basedir, filename)
if not os.path.isfile(path): if not os.path.isfile(path):