From e9919f2ab7c5e88dab21d964da0e7552464e5256 Mon Sep 17 00:00:00 2001 From: Hanusz Leszek Date: Thu, 29 Sep 2022 01:22:56 +0200 Subject: [PATCH] Sort scripts loading order --- modules/scripts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/scripts.py b/modules/scripts.py index 202374e6..f178802e 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -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):