scripts/minimaws: Fixed last-minute change to zipfile use. (#11028)

This commit is contained in:
wilbertpol 2023-03-25 17:47:30 +00:00 committed by GitHub
parent 3b62566cc9
commit 6c28bd93ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,7 +132,7 @@ class _Identifier(object):
if os.path.splitext(path)[1].lower() != '.chd':
if zipfile.is_zipfile(path):
with zipfile.ZipFile(path, 'r') as zip:
for info in zip.namelist():
for info in zip.infolist():
if info.filename[-1] != '/':
with zip.open(info, mode='r') as f:
self.processRomFile(path + '/' + info.filename, f)