Ejemplo n.º 1
0
 def read(self):
     self.process.stdin.close()
     text = self.process.stdout.read()
     self.process.stdout.close()
     self.process.wait()
     deleteFile(self.file)
     return text
Ejemplo n.º 2
0
 def outputString(self):
     self.process.stdin.close()
     text = self.process.stdout.read()
     self.process.stdout.close()
     self.process.wait()
     deleteFile(self.file)
     return text
Ejemplo n.º 3
0
 def removeTempFile(self):
     if os.path.exists(self.tempFile):
         utils.deleteFile(self.tempFile)
Ejemplo n.º 4
0
 def close(self):
     self.process.stdin.close()
     self.process.stdout.close()
     self.process.wait()
     deleteFile(self.file)
Ejemplo n.º 5
0
 def _system(self, command):
     if self.bundleItem != None:
         command, environment, tempFile = prepareShellScript(unicode(command), self.bundleItem.buildEnvironment())
         process = Popen(command, stdout = PIPE, stdin = PIPE, stderr = STDOUT, env = environment)
         self.mainFrame.addToJavaScriptWindowObject("_systemWrapper", SystemWrapper(process, command))
         deleteFile(tempFile)
Ejemplo n.º 6
0
 def close(self):
     self.process.stdin.close()
     self.process.stdout.close()
     self.process.wait()
     deleteFile(self.file)