Browse Source

improve: reduce pip install spam

pull/440/head
dr.lt.data 9 months ago
parent
commit
cdc9259ee2
  1. 2
      __init__.py
  2. 6
      prestartup_script.py

2
__init__.py

@ -29,7 +29,7 @@ except:
print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.") print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.")
version = [2, 8] version = [2, 8, 1]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
print(f"### Loading: ComfyUI-Manager ({version_str})") print(f"### Loading: ComfyUI-Manager ({version_str})")

6
prestartup_script.py

@ -15,7 +15,11 @@ sys.path.append(glob_path)
import cm_global import cm_global
message_collapses = [] def skip_pip_spam(x):
return 'Requirement already satisfied:' in x
message_collapses = [skip_pip_spam]
import_failed_extensions = set() import_failed_extensions = set()
cm_global.variables['cm.on_revision_detected_handler'] = [] cm_global.variables['cm.on_revision_detected_handler'] = []
enable_file_logging = True enable_file_logging = True

Loading…
Cancel
Save