This turned out to be pretty easy to do in the end. The trick was to switch to using Qt's process management instead of Python's vanilla subprocess module.
This turned out to be pretty easy to do in the end. The trick was to switch to using Qt's process management instead of Python's vanilla subprocess module.