Files
dzgui/scripts/parse_toml.py
T
2026-11-09 11:03:50 +09:00

13 lines
276 B
Python

import tomllib
from shared import get_git_root
def get_entrypoint() -> None:
root = get_git_root()
p = root.joinpath("pyproject.toml")
with open(p, "rb") as f:
t = tomllib.load(f)
name = t["project"]["name"]
return t["project"]["scripts"][name]