mirror of
https://github.com/aclist/dztui.git
synced 2026-11-09 19:40:38 +01:00
13 lines
276 B
Python
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]
|