Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions medea/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""Console entry points for Medea."""

from pathlib import Path
import runpy


def main():
"""Run the repository evaluation CLI used by ``python main.py``."""
entrypoint = Path(__file__).resolve().parents[1] / "main.py"
if not entrypoint.exists():
raise FileNotFoundError(
"Could not find main.py next to the Medea package. "
"Run `python main.py` from a source checkout instead."
)
runpy.run_path(str(entrypoint), run_name="__main__")