fix: parse filepath correctly

This commit is contained in:
aclist 2026-06-11 15:15:43 +09:00
parent 98b550cec6
commit 4f51d962e7

View File

@ -53,7 +53,8 @@ def is_mission(path: Path) -> bool:
file = path / "init.c"
return file.exists()
def tokenize(file: str) -> dict[Any] | None:
def tokenize(mod: Path) -> dict[Any] | None:
file = mod.joinpath("meta.cpp")
delimiter=r"\s*=\s*"
modmeta = {}
try: