From a525c101cab33ecdc4a335d30e650d5b274364b8 Mon Sep 17 00:00:00 2001 From: Florian Lindinger <53214402+FlorianLindinger@users.noreply.github.com> Date: Mon, 14 Sep 2026 16:22:15 +0200 Subject: [PATCH 1/2] Made zip file loading based on file names within zips and not the zip name itself: This allows for renaming of zips. --- Source/Python/src/LightwaveExplorer/LightwaveExplorer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/Python/src/LightwaveExplorer/LightwaveExplorer.py b/Source/Python/src/LightwaveExplorer/LightwaveExplorer.py index 4db5aae7..60522fdc 100644 --- a/Source/Python/src/LightwaveExplorer/LightwaveExplorer.py +++ b/Source/Python/src/LightwaveExplorer/LightwaveExplorer.py @@ -94,9 +94,8 @@ def __init__(self, filePath: str, loadFieldArray=True): if filePath.endswith(".zip"): isZip = True archive = zipfile.ZipFile(filePath, "r") - directory, archiveName = os.path.split(filePath) - fileBase, baseExtension = os.path.splitext(archiveName) - settingsFile = archive.open(fileBase + ".txt") + fileBase = next(name for name in archive.namelist() if name.lower().endswith(".txt"))[:-4] + settingsFile = archive.open(fileBase+".txt") settingsFile = io.TextIOWrapper(settingsFile, "utf-8") else: From a64869610c9d6ab6adf11efc79a1a71c5132f3a7 Mon Sep 17 00:00:00 2001 From: Florian Lindinger <53214402+FlorianLindinger@users.noreply.github.com> Date: Mon, 14 Sep 2026 17:01:40 +0200 Subject: [PATCH 2/2] t pushRevert "Made zip file loading based on file names within zips and not the zip name itself: This allows for renaming of zips." This rOBeverts commit a525c101cab33ecdc4a335d30e650d5b274364b8. --- Source/Python/src/LightwaveExplorer/LightwaveExplorer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Python/src/LightwaveExplorer/LightwaveExplorer.py b/Source/Python/src/LightwaveExplorer/LightwaveExplorer.py index 60522fdc..4db5aae7 100644 --- a/Source/Python/src/LightwaveExplorer/LightwaveExplorer.py +++ b/Source/Python/src/LightwaveExplorer/LightwaveExplorer.py @@ -94,8 +94,9 @@ def __init__(self, filePath: str, loadFieldArray=True): if filePath.endswith(".zip"): isZip = True archive = zipfile.ZipFile(filePath, "r") - fileBase = next(name for name in archive.namelist() if name.lower().endswith(".txt"))[:-4] - settingsFile = archive.open(fileBase+".txt") + directory, archiveName = os.path.split(filePath) + fileBase, baseExtension = os.path.splitext(archiveName) + settingsFile = archive.open(fileBase + ".txt") settingsFile = io.TextIOWrapper(settingsFile, "utf-8") else: