mirror of
https://github.com/holub/mame
synced 2025-06-06 12:53:46 +03:00
scripts/minimaws: Fixed last-minute change to zipfile use. (#11028)
This commit is contained in:
parent
3b62566cc9
commit
6c28bd93ba
@ -132,7 +132,7 @@ class _Identifier(object):
|
|||||||
if os.path.splitext(path)[1].lower() != '.chd':
|
if os.path.splitext(path)[1].lower() != '.chd':
|
||||||
if zipfile.is_zipfile(path):
|
if zipfile.is_zipfile(path):
|
||||||
with zipfile.ZipFile(path, 'r') as zip:
|
with zipfile.ZipFile(path, 'r') as zip:
|
||||||
for info in zip.namelist():
|
for info in zip.infolist():
|
||||||
if info.filename[-1] != '/':
|
if info.filename[-1] != '/':
|
||||||
with zip.open(info, mode='r') as f:
|
with zip.open(info, mode='r') as f:
|
||||||
self.processRomFile(path + '/' + info.filename, f)
|
self.processRomFile(path + '/' + info.filename, f)
|
||||||
|
Loading…
Reference in New Issue
Block a user