diff --git a/src/clew/clew.py b/src/clew/clew.py index 272442b..07a6b3b 100644 --- a/src/clew/clew.py +++ b/src/clew/clew.py @@ -141,13 +141,12 @@ def extract_game_ast(output_root: Path, extracted_root: Path, overwrite: bool) - lambda path: path.is_file() and path.suffix.lower() in {".rpyc", ".rpymc"}, ) LOG.info("found %d compiled Ren'Py scripts under %s", len(scripts), game_root) - total = len(scripts) - for index, script in enumerate(scripts, start=1): + for script in scripts: output = ast_dump_output_path(output_root, extracted_root, game_root, script) if output.exists() and not overwrite: - LOG.info("skipping existing AST dump %d/%d: %s", index, total, output) + LOG.info("skipping existing AST dump: %s", output) continue - LOG.info("dumping AST %d/%d: %s", index, total, script) + LOG.info("dumping AST: %s", script) run_extract_renpy_ast(game_root, script, output)