fix: update folder path logic to use correct module path

This commit is contained in:
limon-daohaosisi 2025-11-04 10:58:07 +08:00
parent 4e2110c794
commit 9db1425b70

View File

@ -79,7 +79,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 possible_module.endswith(".disabled") or possible_module == "__pycache__":
continue
script_path = os.path.join(module_path, "prestartup_script.py")