stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

use script_path for webui root in launch_utils

Open w-e-w opened this issue 1 year ago • 0 comments
trafficstars

Description

webui modules like launch to be imported correctly in extensions install.py when user run webui from a different cwd then webui root fix

  • https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/15697

more sensible implementation of what is trying to achieve

  • https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15704

script_path is difined relative to modules/paths_internal.p so won't be affected by cwd like the current os.path.abspath('.') https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0/modules/paths_internal.py#L16-L17

additional also change the path for CHANGELOG.md

Checklist:

w-e-w avatar May 04 '24 14:05 w-e-w