2018-10-31 00:32:42 -07:00
|
|
|
#!/usr/bin/env python
|
2018-11-01 06:06:55 +01:00
|
|
|
# This file just executes its arguments, except that also adds GN_OUT_DIR to the
|
2018-10-31 00:32:42 -07:00
|
|
|
# environ. This is for compatibility with cargo.
|
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
2018-11-01 06:06:55 +01:00
|
|
|
# This is for src/msg.rs to know where to find msg_generated.rs.
|
|
|
|
# When building with Cargo this variable is set by build.rs.
|
|
|
|
os.environ["GN_OUT_DIR"] = os.path.abspath(".")
|
|
|
|
assert os.path.isdir(os.environ["GN_OUT_DIR"])
|
2018-10-31 11:11:10 -07:00
|
|
|
|
2018-11-01 06:06:55 +01:00
|
|
|
sys.exit(subprocess.call(sys.argv[1:]))
|