From 8c9b7bd00f2698ddb29f825c407946beec9c18dd Mon Sep 17 00:00:00 2001 From: dchatel Date: Sun, 12 Jan 2025 14:09:38 +0100 Subject: [PATCH 1/2] Update extra_config.py added path normalization to full_path. needed to ensure that line 204 in folder_paths.py: `if full_folder_path in paths:` works properly on all OS. --- utils/extra_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/extra_config.py b/utils/extra_config.py index d7b592855..fc47b62c1 100644 --- a/utils/extra_config.py +++ b/utils/extra_config.py @@ -26,7 +26,7 @@ def load_extra_path_config(yaml_path): continue full_path = y if base_path: - full_path = os.path.join(base_path, full_path) + full_path = os.path.normpath(os.path.join(base_path, full_path)) elif not os.path.isabs(full_path): full_path = os.path.abspath(os.path.join(yaml_dir, y)) logging.info("Adding extra search path {} {}".format(x, full_path)) From 1a00fb968f3c03b31838c043ab6a37d8ded4be8e Mon Sep 17 00:00:00 2001 From: dchatel Date: Sun, 12 Jan 2025 14:47:01 +0100 Subject: [PATCH 2/2] 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. --- utils/extra_config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/extra_config.py b/utils/extra_config.py index fc47b62c1..cf2ab2764 100644 --- a/utils/extra_config.py +++ b/utils/extra_config.py @@ -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: