mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-19 17:47:25 -05:00
rename infotext.py again, this time to infotext_utils.py; I didn't realize infotext would be used for variable names in multiple places, which makes it awkward to import the module; also fix the bug I caused by this rename that breaks tests
This commit is contained in:
@@ -67,14 +67,14 @@ def reload_hypernetworks():
|
||||
|
||||
|
||||
def get_infotext_names():
|
||||
from modules import infotext, shared
|
||||
from modules import infotext_utils, shared
|
||||
res = {}
|
||||
|
||||
for info in shared.opts.data_labels.values():
|
||||
if info.infotext:
|
||||
res[info.infotext] = 1
|
||||
|
||||
for tab_data in infotext.paste_fields.values():
|
||||
for tab_data in infotext_utils.paste_fields.values():
|
||||
for _, name in tab_data.get("fields") or []:
|
||||
if isinstance(name, str):
|
||||
res[name] = 1
|
||||
|
||||
Reference in New Issue
Block a user