Update documentation for custom nodes directory

Clarified documentation on custom nodes directory argument, removed documentation on environment variable
This commit is contained in:
Sas van Gulik 2025-11-06 10:20:20 +01:00 committed by GitHub
parent 60163d5643
commit 41b875c0ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,11 +34,12 @@ def safe_load_json_file(file_path: str) -> dict:
class CustomNodeManager:
"""Manages and resolves folders for custom nodes.
The custom_nodes folder location can be overridden using either
by passing in a folder through client argument --custom-nodes-directory,
or by setting COMFYUI_CUSTOM_NODES_DIR as an environment variable.
The custom_nodes folder location can be overridden
by passing in a folder argument --custom-nodes-directory.
The cli argument takes prescedence if passed in.
The argument can take appropriately delimited path entries, e.g.
`... --custom-nodes-directory /path/to/custom1:/path/to/custom2` for linux / osx (:)
`... --custom-nodes-directory "X:\\path\\to\\custom1;X:\\path\\to\\custom2"` for windows (;)
"""
@lru_cache(maxsize=1)
def build_translations(self):