Files
momentry_core/scripts/simple_test.py
Warren 8f05a7c188 feat: update Python processors and add utility scripts
- Update ASR, face, OCR, pose processors
- Add release pre-flight check script
- Add synonym generation, chunk processing scripts
- Add face recognition, stamp search utilities
2026-04-30 15:07:49 +08:00

26 lines
625 B
Python

#!/opt/homebrew/bin/python3.11
"""
Simple test script for Rust to call
"""
import sys
import json
import os
print(f"Python version: {sys.version}")
print(f"Arguments: {sys.argv}")
# Write output file
if len(sys.argv) > 2:
output_path = sys.argv[2]
result = {"success": True, "message": "Test successful", "args": sys.argv}
with open(output_path, "w") as f:
json.dump(result, f, indent=2)
print(f"Output written to: {output_path}")
print(f"File exists: {os.path.exists(output_path)}")
print(
f"File size: {os.path.getsize(output_path) if os.path.exists(output_path) else 0}"
)