mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-06 19:42:34 +08:00
Add input + output roots to scans
This commit is contained in:
parent
facda426b4
commit
8e9c801940
2
main.py
2
main.py
@ -326,7 +326,7 @@ def setup_database():
|
|||||||
if dependencies_available():
|
if dependencies_available():
|
||||||
init_db()
|
init_db()
|
||||||
if not args.disable_assets_autoscan:
|
if not args.disable_assets_autoscan:
|
||||||
seed_assets(["models"], enable_logging=True)
|
seed_assets(["models", "input", "output"], enable_logging=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"Failed to initialize database. Please ensure you have installed the latest requirements. If the error persists, please report this as in future the database will be required: {e}")
|
logging.error(f"Failed to initialize database. Please ensure you have installed the latest requirements. If the error persists, please report this as in future the database will be required: {e}")
|
||||||
|
|
||||||
|
|||||||
@ -687,7 +687,7 @@ class PromptServer():
|
|||||||
@routes.get("/object_info")
|
@routes.get("/object_info")
|
||||||
async def get_object_info(request):
|
async def get_object_info(request):
|
||||||
try:
|
try:
|
||||||
seed_assets(["models"])
|
seed_assets(["models", "input", "output"])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"Failed to seed assets: {e}")
|
logging.error(f"Failed to seed assets: {e}")
|
||||||
with folder_paths.cache_helper:
|
with folder_paths.cache_helper:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user