mirror of
https://github.com/aclist/dztui.git
synced 2026-08-26 01:37:18 +02:00
13 lines
286 B
Python
13 lines
286 B
Python
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]
|