feat: GridImagePool node (image/mask/index/count/label + IS_CHANGED)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-21 13:01:39 +02:00
parent 40be11cd95
commit 1db94dd57d
3 changed files with 127 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
"""Isolates the ComfyUI dependency so node.py stays unit-testable.
node.py imports ``grid_pool_base`` from here; tests monkeypatch
``node._grid_pool_base`` so ``folder_paths`` is never needed.
"""
import os
def grid_pool_base():
import folder_paths # imported lazily; only available inside ComfyUI
return os.path.join(folder_paths.get_input_directory(), "grid_pool")