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
This commit is contained in:
Nicolas Martel 2024-06-18 12:02:42 -04:00 committed by GitHub
parent e4ba360f34
commit 0e4f1713a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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