mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-13 15:03:33 +00:00
Merge 1a00fb968f
into 22ad513c72
This commit is contained in:
commit
2dfbef6334
@ -20,13 +20,14 @@ def load_extra_path_config(yaml_path):
|
|||||||
is_default = False
|
is_default = False
|
||||||
if "is_default" in conf:
|
if "is_default" in conf:
|
||||||
is_default = conf.pop("is_default")
|
is_default = conf.pop("is_default")
|
||||||
|
folder_paths.models_dir = base_path
|
||||||
for x in conf:
|
for x in conf:
|
||||||
for y in conf[x].split("\n"):
|
for y in conf[x].split("\n"):
|
||||||
if len(y) == 0:
|
if len(y) == 0:
|
||||||
continue
|
continue
|
||||||
full_path = y
|
full_path = y
|
||||||
if base_path:
|
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):
|
elif not os.path.isabs(full_path):
|
||||||
full_path = os.path.abspath(os.path.join(yaml_dir, y))
|
full_path = os.path.abspath(os.path.join(yaml_dir, y))
|
||||||
normalized_path = os.path.normpath(full_path)
|
normalized_path = os.path.normpath(full_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user