diff options
author | DancingSnow <1121149616@qq.com> | 2022-10-16 02:49:21 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-16 13:40:04 +0000 |
commit | fc220a51cf5bb5bfca83322c16e907a18ec59f6b (patch) | |
tree | a0a726790a64d77648b03279c7e83104bf7cb451 | |
parent | adc0ea74e1ee9791f15c3a74bc6c5ad789e10d17 (diff) | |
download | stable-diffusion-webui-gfx803-fc220a51cf5bb5bfca83322c16e907a18ec59f6b.tar.gz stable-diffusion-webui-gfx803-fc220a51cf5bb5bfca83322c16e907a18ec59f6b.tar.bz2 stable-diffusion-webui-gfx803-fc220a51cf5bb5bfca83322c16e907a18ec59f6b.zip |
fix dir_path in some path like `D:/Pic/outputs`
-rw-r--r-- | modules/images_history.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/images_history.py b/modules/images_history.py index e06e07bf..46b23e56 100644 --- a/modules/images_history.py +++ b/modules/images_history.py @@ -109,10 +109,8 @@ def show_images_history(gr, opts, tabname, run_pnginfo, switch_dict): dir_name = opts.outdir_img2img_samples elif tabname == "extras": dir_name = opts.outdir_extras_samples - d = dir_name.split("/") - dir_name = "/" if dir_name.startswith("/") else d[0] - for p in d[1:]: - dir_name = os.path.join(dir_name, p) + else: + return with gr.Row(): renew_page = gr.Button('Renew Page', elem_id=tabname + "_images_history_renew_page") first_page = gr.Button('First Page') |