Send multiple OS.execute() commands

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Dlean Jeans

I’m trying to create a board game in Godot with AI builted in Python.
Since the last Godot Python release was a year ago, so I’m attempting to run the Python interpreter from Godot with:

var output = []
var pid = OS.execute('python', [], true, output)

which freezes the game but at least in the command line window of the editor I get this:

Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

How do I send another command to it?