brintos

brintos / llvm-project-archived public Read only

0
0
Text · 339 B · ddc260f Raw
18 lines · python
1#!/usr/bin/env python32 3import os, sys, subprocess4 5 6idx = 17for arg in sys.argv[1:]:8    if not "=" in arg:9        break10    idx += 111    (argname, argval) = arg.split("=", maxsplit=1)12    os.environ["SIMCTL_CHILD_" + argname] = argval13 14exitcode = subprocess.call(sys.argv[idx:])15if exitcode > 125:16    exitcode = 12617sys.exit(exitcode)18