Skip to content

Commit

Permalink
Update templated_report.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dkratzert committed Mar 6, 2024
1 parent 2d17f93 commit 830c109
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions finalcif/report/templated_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import itertools
import pathlib
import re
import shutil
import sys
from abc import ABC
from collections import namedtuple
Expand Down Expand Up @@ -836,7 +835,8 @@ def get_context(self, cif: CifContainer, options: Options, picfile: Path, tpl_do
'hydrogen_bonds' : self.text_formatter.get_hydrogen_bonds(),
'hydrogen_symminfo' : self.text_formatter.get_hydrogen_symminfo(),
'literature' : self.text_formatter.literature,
'css' : Path('work/bootstrap.min.css').read_text(encoding='utf-8'),
'css' : Path('finalcif/template/bootstrap/bootstrap.min.css').read_text(
encoding='utf-8'),
}
return context

Expand All @@ -862,7 +862,7 @@ def get_context(self, cif: CifContainer, options: Options, picfile: Path, tpl_do
t = TemplatedReport(format=ReportFormat.HTML, options=options, cif=cif)
work = Path('work').resolve()
work.mkdir(exist_ok=True)
shutil.copy2(Path('finalcif/template/bootstrap/bootstrap.min.css'), work)
# shutil.copy2(Path('finalcif/template/bootstrap/bootstrap.min.css'), work)
output = work / 'test.html'
template_path = app_path.application_path / 'template'
ok = t.make_templated_html_report(output_filename=str(output), picfile=pic, template_path=template_path)
Expand Down

0 comments on commit 830c109

Please sign in to comment.