mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-02-10 21:22:37 +08:00
Merge branch 'main' into improve/api-installed
This commit is contained in:
commit
b8905b9018
@ -1,3 +1,8 @@
|
||||
"""
|
||||
description:
|
||||
`manager_core` contains the core implementation of the management functions in ComfyUI-Manager.
|
||||
"""
|
||||
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
@ -177,6 +182,10 @@ def update_user_directory(user_dir):
|
||||
manager_channel_list_path = os.path.join(manager_files_path, 'channels.list')
|
||||
manager_pip_overrides_path = os.path.join(manager_files_path, "pip_overrides.json")
|
||||
manager_components_path = os.path.join(manager_files_path, "components")
|
||||
manager_util.cache_dir = os.path.join(manager_files_path, "cache")
|
||||
|
||||
if not os.path.exists(manager_util.cache_dir):
|
||||
os.makedirs(manager_util.cache_dir)
|
||||
|
||||
try:
|
||||
import folder_paths
|
||||
|
||||
@ -1402,7 +1402,6 @@ async def default_cache_update():
|
||||
# else:
|
||||
# logging.info("[ComfyUI-Manager] Migration check is skipped...")
|
||||
|
||||
|
||||
threading.Thread(target=lambda: asyncio.run(default_cache_update())).start()
|
||||
|
||||
if not os.path.exists(core.manager_config_path):
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
"""
|
||||
description:
|
||||
`manager_util` is the lightest module shared across the prestartup_script, main code, and cm-cli of ComfyUI-Manager.
|
||||
"""
|
||||
|
||||
import aiohttp
|
||||
import json
|
||||
import threading
|
||||
@ -10,7 +15,7 @@ import re
|
||||
cache_lock = threading.Lock()
|
||||
|
||||
comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
|
||||
cache_dir = os.path.join(comfyui_manager_path, '.cache')
|
||||
cache_dir = os.path.join(comfyui_manager_path, '.cache') # This path is also updated together in **manager_core.update_user_directory**.
|
||||
|
||||
|
||||
# DON'T USE StrictVersion - cannot handle pre_release version
|
||||
|
||||
Loading…
Reference in New Issue
Block a user