I am using python’s very high level layer to embed some python code to a commercial application that supports a proprietary scripting language.
The problem is that the application itself is coded in C++ and it has a embedded log window which displays cout and cerr. I was wondering if there is a way to print to cout/cerr from python… I already goggled a lot about it, but I cannot find a simple way to do it.
Thanks!
There is no simple way. The application itself must assign file-likes to
sys.stdoutandsys.stderrin order to capture them.