From 382949ff88a172d7d608df5979b2d7da6fe24f43 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Thu, 12 Mar 2026 02:54:52 -0400 Subject: [PATCH] [F] Fix gentree --- src/gen_static.py | 2 +- src/gentree.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gen_static.py b/src/gen_static.py index 3e649f9..bd6997b 100644 --- a/src/gen_static.py +++ b/src/gen_static.py @@ -7,7 +7,7 @@ import bot import db import gentree -src = Path(__file__).parent +src = Path(__file__).parent.parent if __name__ == '__main__': # Delete dist if already exists, and copy public to dist diff --git a/src/gentree.py b/src/gentree.py index 2540d95..94e43cb 100644 --- a/src/gentree.py +++ b/src/gentree.py @@ -6,7 +6,7 @@ from hypy_utils import write import db -src = Path(__file__).parent +src = Path(__file__).parent.parent def indent(string: str, level: int): @@ -28,7 +28,7 @@ def dfs(channel: str): def gen_tree(d: Path = src / "public"): - of = dfs("hykilp") + of = dfs("azaneko") write(d / "index.html", (src / "public/layout-full-tree.html").read_text('utf-8') .replace("{{CONTENT}}", of))