scripts.run_ast_pipeline
Reference › scripts › run_ast_pipeline
scripts/run_ast_pipeline.py is a 19-line wrapper that lets the AST pipeline be run directly from a checkout. It puts the repository's src directory at the front of sys.path and exits with the return value of main from orchestrata_ultimate.tools.ast_pipeline. It defines no options of its own; the pipeline module owns the command line.
At a glance
| Source | scripts/run_ast_pipeline.py |
| Lines of code | 19 |
| Classes | 0 |
| Functions | 0 |
| Imports (internal) | orchestrata_ultimate.tools.ast_pipeline |
| Imported by | none |
| Tests that import it | none |
Class diagram
No classes; see Functions.
Dependency diagram
API
No public API: the module defines no classes, functions or constants.
Source
#!/usr/bin/env python3
"""Thin wrapper around orchestrata_ultimate.tools.ast_pipeline for direct invocation."""
from __future__ import annotations
import sys
# Ensure repo src is on path when run directly
from pathlib import Path
_repo_src = Path(__file__).resolve().parent.parent / "src"
if str(_repo_src) not in sys.path:
sys.path.insert(0, str(_repo_src))
# Import deliberately follows the sys.path setup above.
from orchestrata_ultimate.tools.ast_pipeline import main # noqa: E402, I001
if __name__ == "__main__":
sys.exit(main())