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+