Files
EscapistsReintroduced/docs/evidence/package-2026-10-04-ui-bmp/native/core/native-child.py
T
jakub 6a667d8deb Capture current mission, AI, map and administration development
Include the current addon, terrain integrations, tools, regression tests and recorded development evidence.
2026-10-13 22:52:53 +02:00

10 lines
346 B
Python

import json, os, subprocess, sys
from pathlib import Path
command = sys.argv[3:]
environment = os.environ.copy()
environment.update(json.loads(Path(sys.argv[2]).read_text()))
code = subprocess.call(command, env=environment)
with Path(sys.argv[1]).open('x') as output:
json.dump({'command': command, 'exit_code': code}, output)
sys.exit(code)