Limit stderr->blackhole code to Windows client console EXEs

This commit is contained in:
Etoh 2023-09-19 20:08:07 +01:00 committed by GitHub
parent a8755ffd2c
commit f822fab9af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ def blackholeStdoutForFrozenWindow():
sys.stdout = Blackhole()
del Blackhole
elif getattr(sys, 'frozen', '') == "console_exe":
elif isWindowsConsole():
class Blackhole(object):
softspace = 0