##// END OF EJS Templates
Merge pull request #3877 from minrk/noshellpdf...
Min RK -
r11963:28209ad6 merge
parent child Browse files
Show More
@@ -44,9 +44,8 b' class PDFPostProcessor(PostProcessorBase):'
44 """
44 """
45 command = [c.format(filename=input) for c in self.command]
45 command = [c.format(filename=input) for c in self.command]
46 self.log.info("Building PDF: `%s`", ' '.join(command))
46 self.log.info("Building PDF: `%s`", ' '.join(command))
47 for index in range(self.iteration_count):
47 with open(os.devnull, 'wb') as null:
48 if self.verbose:
48 stdout = null if self.verbose else None
49 subprocess.Popen(command, shell=True)
49 for index in range(self.iteration_count):
50 else:
50 p = subprocess.Popen(command, stdout=stdout)
51 with open(os.devnull, 'wb') as null:
51 p.wait()
52 subprocess.Popen(command, shell=True, stdout=null)
General Comments 0
You need to be logged in to leave comments. Login now