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:
AUTOMATIC1111
2024-01-01 17:25:30 +03:00
parent 1ffdedc11d
commit 5d7d1823af
15 changed files with 25 additions and 25 deletions

View File

@@ -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