Skip to content

Commit

Permalink
Merge pull request #72 from martinghunt/master
Browse files Browse the repository at this point in the history
bug fix, files were not being deleted
  • Loading branch information
martinghunt committed Apr 29, 2016
2 parents d47023f + 07555b5 commit 728d890
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ariba/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def _clean(self):
'reference.fa',
]

to_delete = [os.path.join(self.root_dir, x) for x in to_delete]

for filename in to_delete:
if os.path.exists(filename):
Expand Down Expand Up @@ -350,7 +351,7 @@ def run(self):

print('\nMaking report lines', file=self.log_fh, flush=True)
self.report_lines = report.report_lines(self)

self._clean()
print('Finished', file=self.log_fh, flush=True)
print('{:_^79}'.format(' LOG FILE END ' + self.name + ' '), file=self.log_fh, flush=True)
pyfastaq.utils.close(self.log_fh)
Expand Down

0 comments on commit 728d890

Please sign in to comment.