Пример #1
0
 def _open(self, path):
     mkdir_p(os.path.dirname(path))
     return open(path, 'w')
Пример #2
0
 def end(self):
     mkdir_p(os.path.dirname(self.outPath))
     with open(self.outPath, 'w') as f:
         f.write(list_to_aligned_text(self.rows))