From 708064f00993c6bf16294b69628403d217ac0824 Mon Sep 17 00:00:00 2001 From: Foster_Toster Date: Tue, 22 Dec 2020 14:55:25 +0700 Subject: [PATCH] isatty method in DebugOutput class for better compability --- Source/PythonEngine.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/PythonEngine.pas b/Source/PythonEngine.pas index ac231997..c134d1f3 100644 --- a/Source/PythonEngine.pas +++ b/Source/PythonEngine.pas @@ -4836,6 +4836,8 @@ procedure TPythonEngine.DoRedirectIO; ' return self.pyio.read(size)'+LF+ ' def flush(self):' + LF + ' pass' + LF + + ' def isatty(self):' + LF + + ' return True' + LF + 'sys.old_stdin=sys.stdin'+LF+ 'sys.old_stdout=sys.stdout'+LF+ 'sys.old_stderr=sys.stderr'+LF+