1db94dd57d
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
12 lines
379 B
Python
12 lines
379 B
Python
"""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")
|