def init(self):
import subprocess<EOL>import fcntl<EOL>width = str(self.image_dimensions[<NUM_LIT:0>])<EOL>height = str(self.image_dimensions[<NUM_LIT:1>])<EOL>comlist = self.executable.split() + [width, height, self.tmpfile] <EOL>try:<EOL><INDENT>self.p = subprocess.Popen(comlist, stdout=subprocess.PIPE, stdin=subprocess.PIPE)<EOL><DEDENT>except Exception as e:<EOL><INDENT>print(self.pre, "<STR_LIT>"+str(e)+"<STR_LIT:'>")<EOL>return<EOL><DEDENT>self.reset()<EOL>
Start the process