Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve relative paths in YAML configuration for extra model paths #5847

Merged

Conversation

bigcat88
Copy link
Contributor

This PR updates the load_extra_path_config function to properly handle relative paths in YAML configuration files.

Relative paths are now resolved relative to the directory containing the YAML file.

Changes:

  • Added a check using os.path.isabs to determine whether a path is relative or absolute.
  • Relative paths are resolved using the directory of the YAML file when base_path is not specified.

This PR introduces minimal changes and only affects cases where base_path is not set.
As far as I know, there are no breaking changes.

Signed-off-by: bigcat88 <bigcat88@icloud.com>
@vvuk
Copy link

vvuk commented Dec 2, 2024

this is a great idea -- I just put up #5864 for expanding out the yaml paths config, but I didn't really resolve what "." is in that yaml. This makes it clear. I'll make sure that PR behaves this same way.

@comfyanonymous comfyanonymous merged commit cdc3b97 into comfyanonymous:master Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants