for prefix, filenames in self.outputs.items():
for filename in filenames:
output_path = os.path.join(self.output_dir, prefix, filename)
if filename == self.script_name:
content = self.source_content
else:
template_filename = "test.py" if filename == self.test_name else filename
with open(os.path.join("templates", template_filename), "r") as f:
template = f.read()
content = template.format(**self.format_dict)
After Change
self.build_pipes()
for pipe in self.pipes:
pipe.run()
// for prefix, filenames in self.outputs.items():
// for filename in filenames:
// output_path = os.path.join(self.output_dir, prefix, filename)