diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-23 19:22:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 19:22:37 +0000 |
commit | c17f7ee694a42ad09b570755a1562e9ab5ba2b73 (patch) | |
tree | 09dcd3979e9532e4ea0687991149c78a66b176bc /modules/shared.py | |
parent | de5a8c5cb4000408522e80c9917b71ce3228b616 (diff) | |
parent | 25e8273d2f6481deca221b29d35093f6d0c9da6a (diff) | |
download | stable-diffusion-webui-gfx803-c17f7ee694a42ad09b570755a1562e9ab5ba2b73.tar.gz stable-diffusion-webui-gfx803-c17f7ee694a42ad09b570755a1562e9ab5ba2b73.tar.bz2 stable-diffusion-webui-gfx803-c17f7ee694a42ad09b570755a1562e9ab5ba2b73.zip |
Merge pull request #14707 from AUTOMATIC1111/multi-styles-base-styles-file
re-work multi --styles-file
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py index 63661939..ccdca4e7 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -1,3 +1,4 @@ +import os
import sys
import gradio as gr
@@ -11,7 +12,7 @@ parser = shared_cmd_options.parser batch_cond_uncond = True # old field, unused now in favor of shared.opts.batch_cond_uncond
parallel_processing_allowed = True
-styles_filename = cmd_opts.styles_file
+styles_filename = cmd_opts.styles_file = cmd_opts.styles_file if len(cmd_opts.styles_file) > 0 else [os.path.join(data_path, 'styles.csv')]
config_filename = cmd_opts.ui_settings_file
hide_dirs = {"visible": not cmd_opts.hide_ui_dir_config}
|