mirror of
https://github.com/aclist/dztui.git
synced 2026-11-12 04:50:37 +01:00
14 lines
298 B
Python
14 lines
298 B
Python
import tomllib
|
|
from shared import get_git_root
|
|
from typing import Any
|
|
|
|
|
|
def get_entrypoint() -> Any:
|
|
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]
|