pull/27/head
dr413677671 2023-01-23 17:36:01 +08:00
parent 8ef92ebf7e
commit 91433beec6
1 changed files with 2 additions and 2 deletions

View File

@ -656,8 +656,8 @@ class Script(scripts.Script):
def run(self, p, checkbox_iterate, avatar_dict, prompt_dict, default_negative, default_positive, dropdown, prompt_display, rename_button, label_avatar, open_button, export_button, skip_exist, label_presets, label_preview, preview_dropdown, preview_gallery, qc_select, qc_refresh, qc_show, selected_img):
global pg_templates
backup = copy.deepcopy(shared.opts)
print("Auth " + str(os.path.join(rela_path, extension_name)))
os.chmod(os.path.join(rela_path, extension_name, 'assets'), S_IWOTH)
# print("Auth " + str(os.path.join(rela_path, extension_name)))
# os.chmod(os.path.join(rela_path, extension_name, 'assets'), S_IWOTH)
shared.opts.data.update(pg_templates)
lines = [x.strip() for x in prompt_display.splitlines()]
lines = [x for x in lines if len(x) > 0]