22 lines
737 B
Python
Executable File
22 lines
737 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""Thin wrapper: delegate to the shared parser at scripts/common/parse_backend.py.
|
|
|
|
Replaces per-experiment parse_results.py copies that embedded raw_requests
|
|
(the results.json bloat bug). Forwards all CLI args to the shared parser.
|
|
"""
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
_HERE = os.path.dirname(os.path.abspath(__file__))
|
|
_d = _HERE
|
|
while True:
|
|
cand = os.path.join(_d, "scripts", "common", "parse_backend.py")
|
|
if os.path.isfile(cand):
|
|
sys.exit(subprocess.call([sys.executable, cand, *sys.argv[1:]]))
|
|
parent = os.path.dirname(_d)
|
|
if parent == _d:
|
|
break
|
|
_d = parent
|
|
print("ERROR: scripts/common/parse_backend.py not found upwards from " + _HERE, file=sys.stderr)
|
|
sys.exit(1) |