This commit is contained in:
恍兮惚兮 2024-05-06 19:47:06 +08:00
parent 238abe0414
commit 8eabd91efe

View File

@ -269,7 +269,7 @@ const auto init_script =
#ifndef PYSTAND_CONSOLE
L"try:\n"
L" fd = os.open('CONOUT$', os.O_RDWR | os.O_BINARY)\n"
L" fp = os.fdopen(fd, 'w', encoding='utf8')\n"
L" fp = os.fdopen(fd, 'w')\n"
L" sys.stdout = fp\n"
L" sys.stderr = fp\n"
L" attached = True\n"