mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-17 18:33:05 +08:00
print dbg message
This commit is contained in:
parent
6516e62d33
commit
f8e5f5bcbb
@ -3,6 +3,8 @@ import sys
|
|||||||
|
|
||||||
cli_mode_flag = os.path.join(os.path.dirname(__file__), '.enable-cli-only-mode')
|
cli_mode_flag = os.path.join(os.path.dirname(__file__), '.enable-cli-only-mode')
|
||||||
|
|
||||||
|
print("[DBG] point14")
|
||||||
|
|
||||||
if not os.path.exists(cli_mode_flag):
|
if not os.path.exists(cli_mode_flag):
|
||||||
sys.path.append(os.path.join(os.path.dirname(__file__), "glob"))
|
sys.path.append(os.path.join(os.path.dirname(__file__), "glob"))
|
||||||
import manager_server # noqa: F401
|
import manager_server # noqa: F401
|
||||||
|
|||||||
@ -475,6 +475,7 @@ def read_downgrade_blacklist():
|
|||||||
|
|
||||||
read_downgrade_blacklist()
|
read_downgrade_blacklist()
|
||||||
|
|
||||||
|
print("[DBG] point1")
|
||||||
|
|
||||||
def check_bypass_ssl():
|
def check_bypass_ssl():
|
||||||
try:
|
try:
|
||||||
@ -487,12 +488,14 @@ def check_bypass_ssl():
|
|||||||
|
|
||||||
check_bypass_ssl()
|
check_bypass_ssl()
|
||||||
|
|
||||||
|
print("[DBG] point2")
|
||||||
|
|
||||||
# Perform install
|
# Perform install
|
||||||
processed_install = set()
|
processed_install = set()
|
||||||
script_list_path = os.path.join(folder_paths.user_directory, "default", "ComfyUI-Manager", "startup-scripts", "install-scripts.txt")
|
script_list_path = os.path.join(folder_paths.user_directory, "default", "ComfyUI-Manager", "startup-scripts", "install-scripts.txt")
|
||||||
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages())
|
pip_fixer = manager_util.PIPFixer(manager_util.get_installed_packages())
|
||||||
|
|
||||||
|
print("[DBG] point3")
|
||||||
|
|
||||||
def is_installed(name):
|
def is_installed(name):
|
||||||
name = name.strip()
|
name = name.strip()
|
||||||
@ -544,6 +547,7 @@ def is_installed(name):
|
|||||||
|
|
||||||
return True # prevent downgrade
|
return True # prevent downgrade
|
||||||
|
|
||||||
|
print("[DBG] point4")
|
||||||
|
|
||||||
if os.path.exists(restore_snapshot_path):
|
if os.path.exists(restore_snapshot_path):
|
||||||
try:
|
try:
|
||||||
@ -593,6 +597,8 @@ if os.path.exists(restore_snapshot_path):
|
|||||||
def execute_lazy_install_script(repo_path, executable):
|
def execute_lazy_install_script(repo_path, executable):
|
||||||
global processed_install
|
global processed_install
|
||||||
|
|
||||||
|
print("[DBG] point5")
|
||||||
|
|
||||||
install_script_path = os.path.join(repo_path, "install.py")
|
install_script_path = os.path.join(repo_path, "install.py")
|
||||||
requirements_path = os.path.join(repo_path, "requirements.txt")
|
requirements_path = os.path.join(repo_path, "requirements.txt")
|
||||||
|
|
||||||
@ -625,6 +631,8 @@ def execute_lazy_cnr_switch(target, zip_url, from_path, to_path, no_deps, custom
|
|||||||
import uuid
|
import uuid
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
print("[DBG] point6")
|
||||||
|
|
||||||
# 1. download
|
# 1. download
|
||||||
archive_name = f"CNR_temp_{str(uuid.uuid4())}.zip" # should be unpredictable name - security precaution
|
archive_name = f"CNR_temp_{str(uuid.uuid4())}.zip" # should be unpredictable name - security precaution
|
||||||
download_path = os.path.join(custom_nodes_path, archive_name)
|
download_path = os.path.join(custom_nodes_path, archive_name)
|
||||||
@ -674,12 +682,17 @@ def execute_lazy_cnr_switch(target, zip_url, from_path, to_path, no_deps, custom
|
|||||||
|
|
||||||
def execute_migration(moves):
|
def execute_migration(moves):
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
print("[DBG] point7")
|
||||||
|
|
||||||
for x in moves:
|
for x in moves:
|
||||||
if os.path.exists(x[0]) and not os.path.exists(x[1]):
|
if os.path.exists(x[0]) and not os.path.exists(x[1]):
|
||||||
shutil.move(x[0], x[1])
|
shutil.move(x[0], x[1])
|
||||||
print(f"[ComfyUI-Manager] MIGRATION: '{x[0]}' -> '{x[1]}'")
|
print(f"[ComfyUI-Manager] MIGRATION: '{x[0]}' -> '{x[1]}'")
|
||||||
|
|
||||||
|
|
||||||
|
print("[DBG] point8")
|
||||||
|
|
||||||
# Check if script_list_path exists
|
# Check if script_list_path exists
|
||||||
if os.path.exists(script_list_path):
|
if os.path.exists(script_list_path):
|
||||||
print("\n#######################################################################")
|
print("\n#######################################################################")
|
||||||
@ -738,14 +751,20 @@ if os.path.exists(script_list_path):
|
|||||||
print("\n[ComfyUI-Manager] Startup script completed.")
|
print("\n[ComfyUI-Manager] Startup script completed.")
|
||||||
print("#######################################################################\n")
|
print("#######################################################################\n")
|
||||||
|
|
||||||
|
print("[DBG] point9")
|
||||||
|
|
||||||
pip_fixer.fix_broken()
|
pip_fixer.fix_broken()
|
||||||
|
|
||||||
|
print("[DBG] point10")
|
||||||
|
|
||||||
del processed_install
|
del processed_install
|
||||||
del pip_fixer
|
del pip_fixer
|
||||||
manager_util.clear_pip_cache()
|
manager_util.clear_pip_cache()
|
||||||
|
|
||||||
|
print("[DBG] point11")
|
||||||
|
|
||||||
def check_windows_event_loop_policy():
|
def check_windows_event_loop_policy():
|
||||||
|
print("[DBG] point12")
|
||||||
try:
|
try:
|
||||||
import configparser
|
import configparser
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
@ -763,6 +782,10 @@ def check_windows_event_loop_policy():
|
|||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
print("[DBG] point13")
|
||||||
|
|
||||||
if platform.system() == 'Windows':
|
if platform.system() == 'Windows':
|
||||||
check_windows_event_loop_policy()
|
check_windows_event_loop_policy()
|
||||||
|
|
||||||
|
|
||||||
|
print("[DBG] point14")
|
||||||
Loading…
Reference in New Issue
Block a user