Files
2026-05-30 20:55:25 +02:00

15 lines
465 B
Python

from os import path
from typing import Any
from tomllib import load
def get_project_info():
base_path = path.dirname(__file__)
full_path = path.join(base_path, "../../pyproject.toml")
with open(full_path, "rb") as file_stream:
file_info: Any = load(file_stream)
displayName = str(file_info.get("tool").get("comfy").get("DisplayName"))
version = str(file_info.get("project").get("version"))
return displayName, version