mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-04 20:59:58 +00:00
Add all_model_folders as possible entry to extra_model_paths so that all model-related paths will get mapped without needing to specify them individually
This commit is contained in:
@@ -20,6 +20,16 @@ def load_extra_path_config(yaml_path):
|
||||
is_default = False
|
||||
if "is_default" in conf:
|
||||
is_default = conf.pop("is_default")
|
||||
all_model_folders = False
|
||||
if "all_model_folders" in conf:
|
||||
all_model_folders = conf.pop("all_model_folders")
|
||||
if all_model_folders and base_path:
|
||||
for folder_name in list(folder_paths.folder_names_and_paths.keys()):
|
||||
if folder_name == "custom_nodes":
|
||||
continue
|
||||
full_path = os.path.normpath(os.path.join(base_path, folder_name))
|
||||
logging.info("Adding extra search path {} {}".format(folder_name, full_path))
|
||||
folder_paths.add_model_folder_path(folder_name, full_path, is_default)
|
||||
for x in conf:
|
||||
for y in conf[x].split("\n"):
|
||||
if len(y) == 0:
|
||||
|
||||
Reference in New Issue
Block a user