From 1b4762715c23a75d3f15fe8871af470d3df61f90 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 25 Jul 2021 16:15:51 +0200 Subject: [PATCH] print final output name --- Main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Main.py b/Main.py index 0c0ec043..d980873f 100644 --- a/Main.py +++ b/Main.py @@ -515,8 +515,9 @@ def main(args, seed=None): create_playthrough(world) if args.create_spoiler: # needs spoiler.hashes to be filled, that depend on rom_futures being done world.spoiler.to_file(os.path.join(temp_dir, '%s_Spoiler.txt' % outfilebase)) - logger.info('Creating final archive.') - with zipfile.ZipFile(output_path(f"AP_{world.seed_name}.zip"), mode="w", compression=zipfile.ZIP_DEFLATED, + zipfilename = output_path(f"AP_{world.seed_name}.zip") + logger.info(f'Creating final archive at {zipfilename}.') + with zipfile.ZipFile(zipfilename, mode="w", compression=zipfile.ZIP_DEFLATED, compresslevel=9) as zf: for file in os.scandir(temp_dir): zf.write(os.path.join(temp_dir, file), arcname=file.name)