Browse Source

fix: occasionally doesn't perform install script on non-windows system

pull/440/head
dr.lt.data 9 months ago
parent
commit
99c0425d9e
  1. 4
      __init__.py

4
__init__.py

@ -29,7 +29,7 @@ except:
print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.")
version = [2, 8, 1]
version = [2, 8, 2]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
print(f"### Loading: ComfyUI-Manager ({version_str})")
@ -272,7 +272,7 @@ def set_double_click_policy(mode):
def try_install_script(url, repo_path, install_cmd):
if platform.system() == "Windows" and comfy_ui_commit_datetime.date() >= comfy_ui_required_commit_datetime.date():
if (len(install_cmd) > 0 and install_cmd[0].startswith('#')) or (platform.system() == "Windows" and comfy_ui_commit_datetime.date() >= comfy_ui_required_commit_datetime.date()):
if not os.path.exists(startup_script_path):
os.makedirs(startup_script_path)

Loading…
Cancel
Save