Print custom node loading for debug

This commit is contained in:
RobeSantoro 2024-03-25 15:04:38 +01:00
parent c6de09b02e
commit 29b94f61ec
2 changed files with 122 additions and 118 deletions

View File

@ -1917,6 +1917,10 @@ def load_custom_nodes():
possible_modules.remove("__pycache__") possible_modules.remove("__pycache__")
for possible_module in possible_modules: for possible_module in possible_modules:
from colorama import Fore, Style
print(Fore.LIGHTMAGENTA_EX + "\nLOADING " + possible_module + Style.RESET_ALL)
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) and os.path.splitext(module_path)[1] != ".py": continue if os.path.isfile(module_path) and os.path.splitext(module_path)[1] != ".py": continue
if module_path.endswith(".disabled"): continue if module_path.endswith(".disabled"): continue