mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-04-30 19:21:50 +00:00
do not force relative paths in image history
This commit is contained in:
@@ -104,7 +104,7 @@ def show_images_history(gr, opts, tabname, run_pnginfo, switch_dict):
|
|||||||
elif tabname == "extras":
|
elif tabname == "extras":
|
||||||
dir_name = opts.outdir_extras_samples
|
dir_name = opts.outdir_extras_samples
|
||||||
d = dir_name.split("/")
|
d = dir_name.split("/")
|
||||||
dir_name = d[0]
|
dir_name = "/" if dir_name.startswith("/") else d[0]
|
||||||
for p in d[1:]:
|
for p in d[1:]:
|
||||||
dir_name = os.path.join(dir_name, p)
|
dir_name = os.path.join(dir_name, p)
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
|
|||||||
Reference in New Issue
Block a user