1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 15:04:50 +08:00

Expand variables in base_path for extra_config_paths.yaml. (#4893)

* Expand variables in base_path for extra_config_paths.yaml.

* Fix comments.
This commit is contained in:
Robin Huang
2024-09-12 14:52:06 +09:00
committed by GitHub
parent 9f4daca9d9
commit d247bc5a9c
2 changed files with 56 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ def load_extra_path_config(yaml_path):
base_path = None
if "base_path" in conf:
base_path = conf.pop("base_path")
base_path = os.path.expanduser(base_path)
base_path = os.path.expandvars(os.path.expanduser(base_path))
for x in conf:
for y in conf[x].split("\n"):
if len(y) == 0: