Files
Jyotisha/jyotish_vedic/engine.py
T

25 lines
599 B
Python

#!/usr/bin/env python3
"""
Jyotish Engine CLI wrapper.
Usage: jyotish-engine <command> [args]
"""
import sys
import os
SCRIPT_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "scripts")
def cli_main():
"""Delegate to jyotish_engine.py CLI."""
engine = os.path.join(SCRIPT_DIR, "jyotish_engine.py")
if not os.path.exists(engine):
print(f"Error: Engine not found at {engine}", file=sys.stderr)
sys.exit(1)
cmd = [sys.executable, engine] + sys.argv[1:]
os.execv(sys.executable, cmd)
if __name__ == "__main__":
cli_main()