When I run a wxPython app (written by me) from the Windows (10) command line (DOS box), executing
for certain files causes a message to appear (underneath the command line that invoked the app) e.g.
Corrupt JPEG data: 38 extraneous bytes before marker 0xd9
but the image appears to be displayed OK.
I would like a way of suppressing these messages.
They appear to be output with quite a low-level mechanism, specifically
not via sys.stdout or sys.stderr
not via the wx logging mechanism.
They are output with a final newline, so it is not possible to hide them by outputting backspaces, '\r’s, spaces etc.
As far as I know this has always been true whatever the version of wxPython / Python / Windows.
Is this possible?