Files

13 lines
372 B
Python

"""Harmless smoke payload used only to verify staged Python execution."""
from pathlib import Path
import sys
result = Path(__file__).with_name("execution-result.txt")
result.write_text(
"sandbox-python:" + ".".join(map(str, sys.version_info[:3])),
encoding="ascii",
)
print("sandbox-python-smoke-ok")
sys.stderr.buffer.write(b"sandbox-invalid-utf8:\xff\xfe\n")