refactor(clew): write AST exports under ast output
This commit is contained in:
@@ -40,7 +40,7 @@ def parse_args(argv: list[str]) -> argparse.Namespace:
|
||||
parser.add_argument(
|
||||
"--no-extract-renpy-ast",
|
||||
action="store_true",
|
||||
help="Skip dumping compiled scripts from output/extracted/ to output/ast-raw/.",
|
||||
help="Skip dumping compiled scripts from output/extracted/ to output/ast/.",
|
||||
)
|
||||
return parser.parse_args(argv)
|
||||
|
||||
@@ -101,7 +101,7 @@ def find(root: Path, predicate: Callable[[Path], bool]) -> list[Path]:
|
||||
def ast_dump_output_path(output_root: Path, extracted_root: Path, game_root: Path, script: Path) -> Path:
|
||||
namespace = game_root.relative_to(extracted_root)
|
||||
relative_script = script.relative_to(game_root)
|
||||
return output_root / "ast-raw" / namespace / relative_script.with_suffix(relative_script.suffix + ".json")
|
||||
return output_root / "ast" / namespace / relative_script.with_suffix(relative_script.suffix + ".json")
|
||||
|
||||
|
||||
def run_extract_renpy_ast(game_root: Path, script: Path, output: Path) -> None:
|
||||
|
||||
Reference in New Issue
Block a user