PRIArobotics / Hedgehog

Setup & documentation for Hedgehog
https://hedgehog.pria.at/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Change python buffering handling #4

Open SillyFreak opened 7 years ago

SillyFreak commented 7 years ago

python supports a -u option (or the PYTHONUNBUFFERED=1 environment variable) for forcing unbuffered IO (and line buffered text IO), allowing the IDE to show output as soon as it is printed. Use that instead of the current stream-reopening approach, and pass the option to programs when running via the IDE.