mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
Sort scripts loading order
This commit is contained in:
parent
66fed8ffb8
commit
e9919f2ab7
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user