From 0e4f1713a4828de1358cda9e05a86f832f8f8dae Mon Sep 17 00:00:00 2001 From: Nicolas Martel Date: Tue, 18 Jun 2024 12:02:42 -0400 Subject: [PATCH] Add missing isatty(...) function (#790) Depending on the use of ComfyUI this missing function can be called in certain code paths, such as used in yachalk --- prestartup_script.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prestartup_script.py b/prestartup_script.py index 22a0d082..47945f33 100644 --- a/prestartup_script.py +++ b/prestartup_script.py @@ -214,6 +214,9 @@ try: # Handle error raise ValueError("The object does not have a fileno method") + def isatty(self): + return False + def write(self, message): global is_start_mode