This commit is contained in:
zurdi
2023-08-01 13:30:38 +02:00
parent 263bdfd8ff
commit 63ad5eedf2

View File

@@ -156,7 +156,7 @@ def _exclude_multi_roms(roms) -> list[str]:
def get_rom_files(rom: str, roms_path: str) -> list[str]:
rom_files: list = []
for path, d, files in os.walk(f"{roms_path}/{rom}"):
for path, _, files in os.walk(f"{roms_path}/{rom}"):
[rom_files.append(f"{Path(path, f)}".replace(f"{roms_path}/{rom}/", '')) for f in _exclude_files(files, 'multi_parts')]
return rom_files