g0blin Bringing together art & technology

14Oct/100

Deep Red

Taken September 9th, 2010 during a walk through Appledore woods

14Oct/100

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!