This commit addresses the NameError that occurs in the get_custom_nodes_paths method of the Ctx class. The error was caused by the folder_paths module not being properly imported or accessible within the static method. The fix involves the following changes: 1. Add a class variable folder_paths to the Ctx class. 2. Import the folder_paths module in the __init__ method using importlib. 3. Update the get_custom_nodes_paths method to use the class variable. 4. Add error handling to gracefully handle cases where the folder_paths module cannot be imported. These changes ensure that the folder_paths module is properly imported and accessible within the Ctx class, resolving the NameError and improving the overall stability of the ComfyUI-Manager CLI tool. Co-authored-by: yhayano-ponotech <yhayano.biz@gmail.com>
37 KiB
37 KiB