aboutsummaryrefslogtreecommitdiff
path: root/modules/extras.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-16 09:51:01 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-10-16 09:51:01 +0300
commit179e3ca752d0133470fd3ae44153ee0b71450c9f (patch)
treee6fb32b93bbd8d8f316026ee6e5ec6f918d59826 /modules/extras.py
parent2ce27728f6433911274efa67856315d22df56629 (diff)
honor --hide-ui-dir-config option for #2807
Diffstat (limited to 'modules/extras.py')
-rw-r--r--modules/extras.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/extras.py b/modules/extras.py
index 5b52b27d..0819ed37 100644
--- a/modules/extras.py
+++ b/modules/extras.py
@@ -35,6 +35,8 @@ def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_
imageArr.append(image)
imageNameArr.append(os.path.splitext(img.orig_name)[0])
elif extras_mode == 2:
+ assert not shared.cmd_opts.hide_ui_dir_config, '--hide-ui-dir-config option must be disabled'
+
if input_dir == '':
return outputs, "Please select an input directory.", ''
image_list = [file for file in [os.path.join(input_dir, x) for x in os.listdir(input_dir)] if os.path.isfile(file)]