Browse Source

fix: robust cm_global

pull/284/head
dr.lt.data 11 months ago
parent
commit
e0b762baca
  1. 16
      __init__.py
  2. 1
      prestartup_script.py

16
__init__.py

@ -8,22 +8,26 @@ import os
import sys
import threading
import datetime
import re
import locale
import subprocess # don't remove this
from tqdm.auto import tqdm
import concurrent
import ssl
from urllib.parse import urlparse
import http.client
import re
import signal
import nodes
import torch
import cm_global
try:
import cm_global
except:
glob_path = os.path.join(os.path.dirname(__file__), "glob")
sys.path.append(glob_path)
import cm_global
print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.")
version = [1, 19]
version = [1, 19, 1]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
print(f"### Loading: ComfyUI-Manager ({version_str})")

1
prestartup_script.py

@ -7,7 +7,6 @@ import threading
import re
import locale
import platform
import traceback
glob_path = os.path.join(os.path.dirname(__file__), "glob")

Loading…
Cancel
Save