(self, output_path)
| 40 | return "".join(self.blocks).replace("\r\n","\n") |
| 41 | |
| 42 | def write_to(self, output_path): |
| 43 | output_dir = os.path.dirname(output_path) |
| 44 | if output_dir and not os.path.isdir(output_dir): |
| 45 | os.makedirs(output_dir) |
| 46 | f = open(output_path, "wb") |
| 47 | f.write(str.encode(self.get_value(), 'UTF-8')) |
| 48 | f.close() |
| 49 | |
| 50 | def amalgamate_source(source_top_dir=None, |
| 51 | target_source_path=None, |