gstreamer/subprojects/macos-bison-binary/bison.py.in

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
395 B
Python
Raw Normal View History

#!/usr/bin/env python3
import os
import sys
import pathlib
import subprocess
srcdir = pathlib.Path("@SRCDIR@")
extractdir = pathlib.Path("@EXTRACTDIR@")
bison_path = srcdir / extractdir / 'bin/bison'
env = os.environ.copy()
env['BISON_PKGDATADIR'] = str(srcdir / extractdir / 'share/bison')
ret = subprocess.run([str(bison_path)] + sys.argv[1:], check=False, env=env)
sys.exit(ret.returncode)