aboutsummaryrefslogtreecommitdiff
path: root/modules/infotext.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2024-01-01 13:52:37 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2024-01-01 13:52:37 +0300
commitc5496c76461c90bd186ae8804aa65a33cd136d48 (patch)
treeb8791ba32d47314e12f8d2c657a6e0cd0bdff849 /modules/infotext.py
parent003b91f08361c99ecdd97257624d81a2046d3823 (diff)
infotext.py: add support for old modules.generation_parameters_copypaste name
Diffstat (limited to 'modules/infotext.py')
-rw-r--r--modules/infotext.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/infotext.py b/modules/infotext.py
index 86a36c32..bcbeb0fd 100644
--- a/modules/infotext.py
+++ b/modules/infotext.py
@@ -4,12 +4,15 @@ import io
import json
import os
import re
+import sys
import gradio as gr
from modules.paths import data_path
from modules import shared, ui_tempdir, script_callbacks, processing
from PIL import Image
+sys.modules['modules.generation_parameters_copypaste'] = sys.modules[__name__] # alias for old name
+
re_param_code = r'\s*(\w[\w \-/]+):\s*("(?:\\.|[^\\"])+"|[^,]*)(?:,|$)'
re_param = re.compile(re_param_code)
re_imagesize = re.compile(r"^(\d+)x(\d+)$")