I needed to have a directly executable python script, so i started the file with "#!/usr/bin/env python". However, i also need unbuffered output, so i tried "#!/usr/bin/env python -u", but that doesn't work. ("python -u: no such file or directory")
I found out that "#/usr/bin/python -u" works, but it doesn't suit my needs because i need it to get the python in PATH to support virtualenv envoriments.
What are my options?