samyeyo / LuaRT

Open source Windows programming framework for Lua
https://www.luart.org
Other
285 stars 17 forks source link

Pipe:read() might return nil value when redirecting python interpreter output #33

Closed samyeyo closed 1 year ago

samyeyo commented 1 year ago

Ok, I've done some investigations, and it's not LuaRT related :

In fact, Python on Windows will detect if it is executed with stdout, stderr and stdin redirected. In this case, the python interpreter don't send anything to stdout, only to stderr. Except if you set the -i flag when executing the python interpreter.

Strange behaviour if you ask me...