This commit is contained in:
huchenlei 2025-01-07 21:56:33 -05:00
parent 28b33a3f1c
commit 672200e087

View File

@ -46,7 +46,11 @@ async def send_socket_catch_exception(function, message):
logging.warning("send error: {}".format(err))
def get_comfyui_version():
""" Get the version of ComfyUI from the pyproject.toml file. """
""" Get the version of ComfyUI from the pyproject.toml file.
Note:
Use Python's built-in `tomllib` from Python 3.11 or later when available.
"""
with open("pyproject.toml", "r", encoding="utf-8") as f:
return toml.load(f)["project"]["version"]