Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Jan 8, 2025
1 parent 28b33a3 commit 672200e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit 672200e

Please sign in to comment.