4
SparkyTD
20d

I am making a GUI wrapper in C# for a CLI tool written in Python. Obvioisly, the python exe is launched with the Process class and the output streams are redirected so I can process the console output. The problem is that some of that output is only printed if sys.stdout.isatty() returns True. Is there a hack that would allow me to launch the process in a way that python thinks that there is a console/tty attached?

I really don't want to touch the python source files, because that would be a messy solution. I also don't want the process to spawn an actual console window.

Comments
Your Job Suck?
Get a Better Job
Add Comment