maiself / godot-python-extension

Python language bindings for the Godot game engine
https://godot-python-extension.readthedocs.io
MIT License
23 stars 4 forks source link

Printing doesn't work #34

Open Ivorforce opened 2 weeks ago

Ivorforce commented 2 weeks ago

I tried printing something (print("Test")), it gets lost in the ether.

I'm assuming this is because the out pipe is not connected to godot's own console.

Ivorforce commented 2 weeks ago

Ok, I figured out that godot.print does work.

I also found this method to redirect normal printing to another console.

I'd argue that, to keep python semantics, we should automatically redirect printing to the godot console.