コード例 #1
0
ファイル: browser.py プロジェクト: DoctorMalboro/prymatex
 def read(self):
     self.process.stdin.close()
     text = self.process.stdout.read()
     self.process.stdout.close()
     self.process.wait()
     deleteFile(self.file)
     return text
コード例 #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
コード例 #3
0
ファイル: bundle.py プロジェクト: DoctorMalboro/prymatex
 def removeTempFile(self):
     if os.path.exists(self.tempFile):
         utils.deleteFile(self.tempFile)
コード例 #4
0
ファイル: browser.py プロジェクト: DoctorMalboro/prymatex
 def close(self):
     self.process.stdin.close()
     self.process.stdout.close()
     self.process.wait()
     deleteFile(self.file)
コード例 #5
0
ファイル: browser.py プロジェクト: diegomvh/prymatex
 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)
コード例 #6
0
 def close(self):
     self.process.stdin.close()
     self.process.stdout.close()
     self.process.wait()
     deleteFile(self.file)