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))