mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-15 03:27:24 +08:00
Replace the model-only extra_model_paths.yaml with a more generic
extra_paths.yaml that covers all ComfyUI path configuration in one file.
New schema (nested style):
comfyui:
base_path: /path/to/comfyui/ # install root
output: output/ # → set_output_directory()
input: input/
temp: temp/
user: user/
custom_nodes: custom_nodes/ # explicit only, never auto-scanned
models:
base_path: models/ # model root, relative to parent base_path
is_default: true
checkpoints: checkpoints/ # or omit all categories to auto-scan
Key changes:
- System directory keys (output/input/temp/user) call set_*_directory()
- models: sub-block separates model paths from install-root paths; base_path
at block root = install root; models/base_path = model root
- custom_nodes never auto-registered by implicit scan (fixes CodeRabbit #13560)
- Flat style fully preserved for backward compat with extra_model_paths.yaml
- extra_paths.yaml loaded first; deprecation warning logged if both present
- extra_paths.yaml.example covers all 22 model categories with preset paths
- extra_model_paths.yaml.example gains a deprecation note
27 lines
387 B
Plaintext
27 lines
387 B
Plaintext
__pycache__/
|
|
*.py[cod]
|
|
/output/
|
|
/input/
|
|
!/input/example.png
|
|
/models/
|
|
/temp/
|
|
/custom_nodes/
|
|
!custom_nodes/example_node.py.example
|
|
extra_model_paths.yaml
|
|
extra_paths.yaml
|
|
/.vs
|
|
.vscode/
|
|
.idea/
|
|
venv*/
|
|
.venv/
|
|
/web/extensions/*
|
|
!/web/extensions/logging.js.example
|
|
!/web/extensions/core/
|
|
/tests-ui/data/object_info.json
|
|
/user/
|
|
*.log
|
|
web_custom_versions/
|
|
.DS_Store
|
|
filtered-openapi.yaml
|
|
uv.lock
|