main
mouseinfo (pyautogui dependency) accesses os.environ['DISPLAY'] at module level, which raises KeyError when ComfyUI runs headless. Use setdefault to provide a fallback value without overwriting an existing DISPLAY setting. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Languages
Python
100%
