Skip to content

Commit

Permalink
Merge pull request #38 from Surpris/develop
Browse files Browse the repository at this point in the history
fix #37
  • Loading branch information
Surpris authored Nov 27, 2024
2 parents 1aec710 + 5d67f04 commit cd9695b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions directory_structure_py/rocrate_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,5 @@ def write(self, dest_base, template_path: str = None):
else:
write_path = Path(dest_base) / self.id
out_html = self.generate_html(template_path)
with open(write_path, 'w') as outfile:
with open(write_path, 'w', encoding="utf-8") as outfile:
outfile.write(out_html)

class ROCrate(ROCrateOrigin):
"""
Customized ROCrate class
"""

def __init__(self, source=None, gen_preview=False, init=False, exclude=None, template_path: str = None):
super().__init__(source, gen_preview=False, init=init, exclude=exclude)
if gen_preview:
self.add(Preview(self))

0 comments on commit cd9695b

Please sign in to comment.