#!/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}" )