Skip to content

Commit

Permalink
Normalize extra_model_config.yaml paths before adding.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Feb 20, 2025
1 parent 1b62d98 commit 2fa38f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/extra_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ def load_extra_path_config(yaml_path):
full_path = 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))
folder_paths.add_model_folder_path(x, full_path, is_default)
normalized_path = os.path.normpath(full_path)
logging.info("Adding extra search path {} {}".format(x, normalized_path))
folder_paths.add_model_folder_path(x, normalized_path, is_default)

0 comments on commit 2fa38f6

Please sign in to comment.