diff options
author | RnDMonkey <ryandrutledge@gmail.com> | 2022-10-02 04:37:14 +0000 |
---|---|---|
committer | RnDMonkey <ryandrutledge@gmail.com> | 2022-10-02 04:37:14 +0000 |
commit | 32edf1732f27a1fad5133667c22b948adda1b070 (patch) | |
tree | 2960c6517a320658c4ab723bb83d6429a5f7cb75 /modules/images.py | |
parent | 70f526704721a303ae045f6406439dcceee4302e (diff) | |
download | stable-diffusion-webui-gfx803-32edf1732f27a1fad5133667c22b948adda1b070.tar.gz stable-diffusion-webui-gfx803-32edf1732f27a1fad5133667c22b948adda1b070.tar.bz2 stable-diffusion-webui-gfx803-32edf1732f27a1fad5133667c22b948adda1b070.zip |
os.path.normpath wasn't working, reverting to manual strip
Diffstat (limited to 'modules/images.py')
-rw-r--r-- | modules/images.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/images.py b/modules/images.py index 5ef7eb92..4998e92c 100644 --- a/modules/images.py +++ b/modules/images.py @@ -374,8 +374,8 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i save_to_dirs = (grid and opts.grid_save_to_dirs) or (not grid and opts.save_to_dirs and not no_prompt)
if save_to_dirs:
- dirname = apply_filename_pattern(opts.directories_filename_pattern or "[prompt_words]", p, seed, prompt)
- path = os.path.normpath(os.path.join(path, dirname))
+ dirname = apply_filename_pattern(opts.directories_filename_pattern or "[prompt_words]", p, seed, prompt).strip('\\ /')
+ path = os.path.join(path, dirname)
os.makedirs(path, exist_ok=True)
|