change full path (module_path) to folder name (possible_module)

This commit is contained in:
Sida Liu 2024-04-04 08:24:47 +08:00
parent 6c6a39251f
commit 4c31d40a8e

View File

@ -25,7 +25,7 @@ def execute_prestartup_script():
for possible_module in possible_modules: for possible_module in possible_modules:
module_path = os.path.join(custom_node_path, possible_module) 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 continue
script_path = os.path.join(module_path, "prestartup_script.py") script_path = os.path.join(module_path, "prestartup_script.py")