* removed unnecessary processing of variables.

* error control when reading wildcard or mapping files, and second chance for files with incorrect encoding.
* fix processing inside extranetwork tag.
This commit is contained in:
Antonio Cordero Balcazar
2025-09-27 13:22:19 +02:00
parent 8769c21ee5
commit db43d409f8
10 changed files with 109 additions and 58 deletions
+4 -1
View File
@@ -297,7 +297,10 @@ class PromptPostProcessorA1111Script(scripts.Script):
]
en_mappings_folders = getattr(opts, "ppp_en_mappingsfolders", "")
if en_mappings_folders == "":
en_mappings_folders = os.getenv("EXTRANETWORKMAPPINGS_DIR", PPPExtraNetworkMappings.DEFAULT_ENMAPPINGS_FOLDER)
en_mappings_folders = os.getenv(
"EXTRANETWORKMAPPINGS_DIR",
PPPExtraNetworkMappings.DEFAULT_ENMAPPINGS_FOLDER,
)
enmappings_folders = [
(f if os.path.isabs(f) else os.path.abspath(os.path.join(models_path, f)))
for f in en_mappings_folders.split(",")