I did some testing of using packp3d and pdeploy with a game that calls a subprocess using python’s subprocess module.
This is what the function that calls the subprocess looks like:
def hostGame(self):
args = ["python", "Game.py", "-m", "H"]
game = subprocess.Popen(args)
base.closeWindow(base.win)
game.wait()
base.openDefaultWindow()
self.setWindowProperties()
self.hub.menuSpoke.createMenu(self.menuArgs)
When I install the game and run it on my laptop, it doesn’t seem to open the subprocess, it moves immediately to base.openDefaultWindow(), because there isn’t a subprocess to wait for. How do I fix this?