Skip to content

Commit

Permalink
Merge c30750a into 6b177b3
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldemarmiesse committed Aug 2, 2019
2 parents 6b177b3 + c30750a commit 1691cc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sacred/observers/file_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, basedir, resource_dir, source_dir, template,
self.basedir = str(basedir)
self.resource_dir = str(resource_dir)
self.source_dir = str(source_dir)
self.template = template if template is None else str(template)
self.template = template
self.priority = priority
self.dir = None
self.run_entry = None
Expand Down Expand Up @@ -181,7 +181,7 @@ def render_template(self):
info=self.info,
cout=self.cout,
savedir=self.dir)
_, ext = os.path.splitext(self.template)
ext = self.template.suffix
with open(os.path.join(self.dir, 'report' + ext), 'w') as f:
f.write(report)

Expand Down

0 comments on commit 1691cc4

Please sign in to comment.