Skip to content

Commit 1b47627

Browse files
committed
print final output name
1 parent 5c21538 commit 1b47627

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Main.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,9 @@ def write_multidata(roms, outputs):
515515
create_playthrough(world)
516516
if args.create_spoiler: # needs spoiler.hashes to be filled, that depend on rom_futures being done
517517
world.spoiler.to_file(os.path.join(temp_dir, '%s_Spoiler.txt' % outfilebase))
518-
logger.info('Creating final archive.')
519-
with zipfile.ZipFile(output_path(f"AP_{world.seed_name}.zip"), mode="w", compression=zipfile.ZIP_DEFLATED,
518+
zipfilename = output_path(f"AP_{world.seed_name}.zip")
519+
logger.info(f'Creating final archive at {zipfilename}.')
520+
with zipfile.ZipFile(zipfilename, mode="w", compression=zipfile.ZIP_DEFLATED,
520521
compresslevel=9) as zf:
521522
for file in os.scandir(temp_dir):
522523
zf.write(os.path.join(temp_dir, file), arcname=file.name)

0 commit comments

Comments
 (0)