mirror of
https://github.com/aclist/dztui.git
synced 2026-08-25 17:32:36 +02:00
14 lines
312 B
Python
14 lines
312 B
Python
from pprint import pprint
|
|
import tomllib
|
|
from pathlib import Path
|
|
|
|
root = Path(__file__).resolve().parents[1]
|
|
|
|
def get_entrypoint() -> None:
|
|
p = root.joinpath("pyproject.toml")
|
|
with open(p, "rb") as f:
|
|
t = tomllib.load(f)
|
|
|
|
name = t["project"]["name"]
|
|
return t["project"]["scripts"][name]
|