Skip to content

Add .isatty() to PythonQtStdIn #48

@fepegar

Description

@fepegar

Hello. I would like an isatty method in stdin as the one in stdout:

{"isatty", (PyCFunction)PythonQtStdOutRedirect_isatty, METH_NOARGS,
"return False since this object is not a tty-like device. Needed for logging framework"
},

May I open a PR to add it to https://github.com/MeVisLab/pythonqt/blob/master/src/PythonQtStdIn.cpp? This is to follow the advice I was given at Slicer/Slicer#5705 to fix an issue using pip within the 3D Slicer Python console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions