Skip to content

Commit

Permalink
Issue #8: Fixing report.j2 template
Browse files Browse the repository at this point in the history
  • Loading branch information
Harald Wilhelmi committed Jul 26, 2023
1 parent f394116 commit b69fd44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ASyH/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _get_report_template():
template_path = dirname(abspath(__file__))
loader = FileSystemLoader(searchpath=template_path)
env = Environment(loader=loader)
return env.get_template('report.j2')
return env.get_template('report.j2', dirname(__file__))

def get_report_property_as_percent(self, property_name):
props = self._sdmetrics_report.get_properties()
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ASyH/report.j2
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ['setuptools', 'wheel']

[project]
name = 'ASyH'
version = '1.0.0'
version = '1.0.1'
dependencies = [
'sdv == 1.0.0',
'openpyxl == 3.1.1',
Expand All @@ -23,4 +23,7 @@ tests = [
'pytest-cov',
'pytest-mock',
'pyfakefs',
]
]

[tool.setuptools.package-data]
ASyH = ['report.j2']

0 comments on commit b69fd44

Please sign in to comment.