Can we start PIE from Python script?

Hi,

so I was wondering if it’s possible to start “PIE” wait for the “END” and then close the editor from a python script.

the job that I would like to automate is basically:

  • open project in editor
  • hit “play”
  • wait for “game quit”
  • close the editor

it sounds like it should be really easy, but I failed to find a solution. I tried to search online and in the docs, but there is nothing. Your help would be appreciated.