4
Wrapping the scons invocation, EMSCRIPTEN_TOOL_PATH is set in the process
5
environment, and can be used to locate the emscripten SCons Tool.
8
my_env = Environment(tools=['emscripten'], toolpath=[os.environ['EMSCRIPTEN_TOOL_PATH']])
11
import os, subprocess, sys
12
from tools import shared
14
tool_path = os.path.join(shared.path_from_root('tools'), 'scons', 'site_scons', 'site_tools', 'emscripten')
16
env = os.environ.copy()
17
env[ 'EMSCRIPTEN_TOOL_PATH' ] = tool_path
19
exit(subprocess.call(sys.argv[1:], env=env))