wooey / Wooey

A Django app that creates automatic web UIs for Python scripts.
http://wooey.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.13k stars 184 forks source link

how to config no buffer output on windows #238

Closed etiaxie closed 6 years ago

etiaxie commented 6 years ago

i setup wooey env on windows python 2.7 and my setup command like the following: python manage.py runserver python manage.py celery worker -c 8 -l info after it works, when the script excute, i find the print output will not pop up on web UI until script excute finished.

Chris7 commented 6 years ago

You need to set the PYTHONUNBUFFERED environment variable to avoid python buffering the output.

etiaxie commented 6 years ago

i don't want to change the whole python environment, just want wooey to output with no buffer.

Chris7 commented 6 years ago

Then you are at an impasse. Wooey runs in python, so you need to control the buffering from python, or flush the stdout from your scripts manually.