I have a Python Script that I run from a C++ GUI Application. I want to get the output of that Script into a Python Console and have the ability to manipulate them before calling another Python Function from C++.
My Question: Is that possible by just redirection stdin & stdout to Files? Is there a better way using pure python?
Please note that I don´t want to spawn the console from the C++ Programm but from outside the C++ Programm.