Show More
@@ -44,9 +44,8 b' class PDFPostProcessor(PostProcessorBase):' | |||
|
44 | 44 | """ |
|
45 | 45 | command = [c.format(filename=input) for c in self.command] |
|
46 | 46 | self.log.info("Building PDF: `%s`", ' '.join(command)) |
|
47 | for index in range(self.iteration_count): | |
|
48 |
if self.verbose |
|
|
49 | subprocess.Popen(command) | |
|
50 | else: | |
|
51 | with open(os.devnull, 'wb') as null: | |
|
52 | subprocess.Popen(command, stdout=null) | |
|
47 | with open(os.devnull, 'wb') as null: | |
|
48 | stdout = null if self.verbose else None | |
|
49 | for index in range(self.iteration_count): | |
|
50 | p = subprocess.Popen(command, stdout=stdout) | |
|
51 | p.wait() |
General Comments 0
You need to be logged in to leave comments.
Login now