fix: log file permission issue when reboot on windows

enhance: pretty conflict nodes message
This commit is contained in:
Dr.Lt.Data
2023-11-27 12:40:45 +09:00
parent 2f1ab1a327
commit 86fe6b317e
6 changed files with 245 additions and 224 deletions

View File

@@ -15,8 +15,9 @@ import ssl
from urllib.parse import urlparse
import http.client
import re
import signal
version = "V1.5"
version = "V1.5.1"
print(f"### Loading: ComfyUI-Manager ({version})")
@@ -1479,7 +1480,12 @@ async def get_notice(request):
@server.PromptServer.instance.routes.get("/manager/reboot")
def restart(self):
return os.execv(sys.executable, ['python'] + sys.argv)
try:
sys.stdout.close_log()
except Exception as e:
pass
return os.execv(sys.executable, [sys.executable] + sys.argv)
@server.PromptServer.instance.routes.get("/manager/share_option")