From 4c31d40a8e00db4ea6a82dc7cb91a002508cd5e3 Mon Sep 17 00:00:00 2001 From: Sida Liu Date: Thu, 4 Apr 2024 08:24:47 +0800 Subject: [PATCH] change full path (module_path) to folder name (possible_module) --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index b3a3ebea8..a2dbe0ac8 100644 --- a/main.py +++ b/main.py @@ -25,7 +25,7 @@ def execute_prestartup_script(): for possible_module in possible_modules: module_path = os.path.join(custom_node_path, possible_module) - if os.path.isfile(module_path) or module_path.endswith(".disabled") or module_path == "__pycache__": + if os.path.isfile(module_path) or module_path.endswith(".disabled") or possible_module == "__pycache__": continue script_path = os.path.join(module_path, "prestartup_script.py")