g0blin Bringing together art & technology


Breaking out of subprocess

While creating a wrapper for the Mincraft server, I came across a small problem. In order to execute the JAR file from within the Python script I needed to fire it up as a subprocess. Unfortunately, Python kills off subprocesses automatically before closing itself (I'm not sure if this is infact the default behaviour of Python or a behaviour caused by using the CherryPy library). This would not do - Power to the Process!