mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
15 lines
329 B
Python
15 lines
329 B
Python
|
#!/usr/bin/env python
|
||
|
"""
|
||
|
gn can only run python scripts.
|
||
|
Also Node programs except to be run with cwd = $root_dir/js so it can resolve
|
||
|
node_modules.
|
||
|
"""
|
||
|
import subprocess
|
||
|
import sys
|
||
|
import os
|
||
|
|
||
|
js_path = os.path.dirname(os.path.realpath(__file__))
|
||
|
os.chdir(js_path)
|
||
|
args = ["node"] + sys.argv[1:]
|
||
|
sys.exit(subprocess.call(args))
|