diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-11 10:23:03 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-11 10:23:03 -0800 |
commit | 58f694a190e414af9f811a72952e0ba3f7d94b83 (patch) | |
tree | 81c142917d824abeccfbe2654954acb58a582ac6 /em++ | |
parent | 994e01663b94c16a681a71255d8a1f87f1a23973 (diff) |
emcc: --version
Diffstat (limited to 'em++')
-rwxr-xr-x | em++ | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -5,13 +5,8 @@ See emcc.py. This script forwards to there, noting that we want C++ and not C by ''' import os, sys +from tools import shared -__rootpath__ = os.path.abspath(os.path.dirname(__file__)) -def path_from_root(*pathelems): - return os.path.join(__rootpath__, *pathelems) -exec(open(path_from_root('tools', 'shared.py'), 'r').read()) - -emmaken = path_from_root('tools', 'emmaken.py') os.environ['EMMAKEN_CXX'] = '1' -exit(os.execvp('python', ['python', emmaken] + sys.argv[1:])) +exit(os.execvp(shared.EMCC, [shared.EMCC] + sys.argv[1:])) |