[issue28164] _PyIO_get_console_type fails for various paths

Steve Dower report at bugs.python.org
Sat Feb 4 20:30:16 EST 2017


Steve Dower added the comment:

Okay, seems like Windows 7 GetFullPathName on conin$ and conout$ returns the path appended to the current directory, and you need to specify the full name as "conin$" or "conout$" to access the console - otherwise you have a file by that name.

We should include a comparison for these names exactly before using GetFullPathName.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28164>
_______________________________________


More information about the Python-bugs-list mailing list