Skip to content

Commit

Permalink
fix: report dir loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jungs1 committed Jul 29, 2024
1 parent d641528 commit 541d29f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/mutahunter/core/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ class MutantReport:
def __init__(self, db: MutationDatabase) -> None:
self.log_file = "logs/_latest/coverage.txt"
self.db = db

self.template_env = Environment(
loader=FileSystemLoader(resources.files(__package__).joinpath("html"))
)
module_dir = os.path.dirname(__file__)
templates_dir = os.path.join(module_dir, "html")
self.template_env = Environment(loader=FileSystemLoader(templates_dir))
os.makedirs("logs/_latest/html", exist_ok=True)

def generate_report(self, total_cost: float, line_rate: float) -> None:
Expand Down

0 comments on commit 541d29f

Please sign in to comment.