I'm starting Blender 2.79 with a
--python flag to run a python script.
On a Mac,
print() statements show up in the terminal window as expected. On Windows, when executing the same command in git bash,
print() statements appear until the main Blender window opens and then output stops.
Where does console output go says on Windows output should go to the "Console Window," but when I select this menu option, the main Blender window loses focus and nothing else happens. (If I start Blender normally the Console Window appears as expected.)
Things that didn't work for me:
- Writing to the console: How can I display what happens in the system console inside blender's console?
- Starting blender.exe with the
Things that kind of worked:
print()as in Blender script run print to console works but only after I quit Blender. -_-
redirect_stdouttrick from How to redirect output from 'bpy.ops.*'? prints output if I capture it with
stdout.seek(0); print(stdout.read()), but only after I quit Blender. -_-
os.system('echo test')works, but if it's possible to get regular python print statements working I'd like to know how.