Fix modules being loaded in the wrong order on some OSes (thanks umib)

This commit is contained in:
Fierelier 2022-05-30 00:26:23 +02:00
parent a96d2b57c9
commit 73f9adacd4
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ def readFile(file,decode = "utf-8"):
def main():
print("Running modules...")
for root,dirs,files in os.walk(p(omlPath,"modules")):
for file in files:
for file in sorted(files):
sfile = file.rsplit(".",1)
if len(sfile) < 2: continue
if sfile[1] != "modlist": continue