Update extra_config.py

change folders_path.models_dir to the base_path specified in extra_models_path.yaml if set.

This ensure that models get correctly uploaded to the specified path across all custom_nodes.
This commit is contained in:
dchatel 2025-01-12 14:47:01 +01:00 committed by GitHub
parent 8c9b7bd00f
commit 1a00fb968f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,7 @@ def load_extra_path_config(yaml_path):
is_default = False
if "is_default" in conf:
is_default = conf.pop("is_default")
folder_paths.models_dir = base_path
for x in conf:
for y in conf[x].split("\n"):
if len(y) == 0: