mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
198e396ead
- Based on code from @qti3e and @piscisaureus in #724 and #1125 respectively. - TODO The DENO_BUILD_PATH env var must be supplied and must be an absolute path, this restriction should be removed in future work.
13 lines
464 B
Python
13 lines
464 B
Python
#!/usr/bin/env python
|
|
# This file just executes its arguments, except that also adds OUT_DIR to the
|
|
# environ. This is for compatibility with cargo.
|
|
import subprocess
|
|
import sys
|
|
import os
|
|
|
|
# TODO This is for src/msg.rs to know where to find msg_generated.rs
|
|
# In the future we should use OUT_DIR here.
|
|
os.environ["DENO_BUILD_PATH"] = os.path.abspath(".")
|
|
assert os.path.isdir(os.environ["DENO_BUILD_PATH"])
|
|
|
|
sys.exit(subprocess.call(sys.argv[1:], env=os.environ))
|