Expose deploy_environment in /system_stats

This commit is contained in:
Robin Huang 2026-06-10 13:22:59 -07:00
parent 9fc6f5f6dd
commit e411e7d574
2 changed files with 5 additions and 0 deletions

View File

@ -1062,6 +1062,9 @@ components:
comfyui_version: comfyui_version:
description: ComfyUI version description: ComfyUI version
type: string type: string
deploy_environment:
description: How this ComfyUI instance was installed (e.g. local-git, local-portable, local-desktop)
type: string
embedded_python: embedded_python:
description: Whether using embedded Python description: Whether using embedded Python
type: boolean type: boolean

View File

@ -27,6 +27,7 @@ import logging
import mimetypes import mimetypes
from comfy.cli_args import args from comfy.cli_args import args
from comfy.deploy_environment import get_deploy_environment
import comfy.utils import comfy.utils
import comfy.model_management import comfy.model_management
from comfy_api import feature_flags from comfy_api import feature_flags
@ -690,6 +691,7 @@ class PromptServer():
"python_version": sys.version, "python_version": sys.version,
"pytorch_version": comfy.model_management.torch_version, "pytorch_version": comfy.model_management.torch_version,
"embedded_python": os.path.split(os.path.split(sys.executable)[0])[1] == "python_embeded", "embedded_python": os.path.split(os.path.split(sys.executable)[0])[1] == "python_embeded",
"deploy_environment": get_deploy_environment(),
"argv": sys.argv "argv": sys.argv
}, },
"devices": device_entries "devices": device_entries