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