mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 10:25:16 +00:00
doc
This commit is contained in:
parent
28b33a3f1c
commit
672200e087
@ -46,7 +46,11 @@ async def send_socket_catch_exception(function, message):
|
|||||||
logging.warning("send error: {}".format(err))
|
logging.warning("send error: {}".format(err))
|
||||||
|
|
||||||
def get_comfyui_version():
|
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:
|
with open("pyproject.toml", "r", encoding="utf-8") as f:
|
||||||
return toml.load(f)["project"]["version"]
|
return toml.load(f)["project"]["version"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user