different debug

This commit is contained in:
Jean-Paul Calderone 2021-01-11 11:33:09 -05:00
parent a4061619dc
commit 14caaa360c

View File

@ -146,17 +146,16 @@ def initialize():
real_stdout = (old_stdout_fileno == STDOUT_FILENO) real_stdout = (old_stdout_fileno == STDOUT_FILENO)
real_stderr = (old_stderr_fileno == STDERR_FILENO) real_stderr = (old_stderr_fileno == STDERR_FILENO)
print("real stdout: {}".format(real_stdout))
print("real stderr: {}".format(real_stderr))
if real_stdout: if real_stdout:
hStdout = GetStdHandle(STD_OUTPUT_HANDLE) hStdout = GetStdHandle(STD_OUTPUT_HANDLE)
if not_a_console(hStdout): if not_a_console(hStdout):
print("stdout not a console")
real_stdout = False real_stdout = False
if real_stderr: if real_stderr:
hStderr = GetStdHandle(STD_ERROR_HANDLE) hStderr = GetStdHandle(STD_ERROR_HANDLE)
if not_a_console(hStderr): if not_a_console(hStderr):
print("stdout not a console")
real_stderr = False real_stderr = False
if real_stdout or real_stderr: if real_stdout or real_stderr: