mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-02-10 23:52:54 +08:00
fix dir_path in some path like D:/Pic/outputs
This commit is contained in:
parent
adc0ea74e1
commit
fc220a51cf
@ -109,10 +109,8 @@ def show_images_history(gr, opts, tabname, run_pnginfo, switch_dict):
|
|||||||
dir_name = opts.outdir_img2img_samples
|
dir_name = opts.outdir_img2img_samples
|
||||||
elif tabname == "extras":
|
elif tabname == "extras":
|
||||||
dir_name = opts.outdir_extras_samples
|
dir_name = opts.outdir_extras_samples
|
||||||
d = dir_name.split("/")
|
else:
|
||||||
dir_name = "/" if dir_name.startswith("/") else d[0]
|
return
|
||||||
for p in d[1:]:
|
|
||||||
dir_name = os.path.join(dir_name, p)
|
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
renew_page = gr.Button('Renew Page', elem_id=tabname + "_images_history_renew_page")
|
renew_page = gr.Button('Renew Page', elem_id=tabname + "_images_history_renew_page")
|
||||||
first_page = gr.Button('First Page')
|
first_page = gr.Button('First Page')
|
||||||
|
Loading…
Reference in New Issue
Block a user