From 58f694a190e414af9f811a72952e0ba3f7d94b83 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sun, 11 Dec 2011 10:23:03 -0800 Subject: emcc: --version --- em++ | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'em++') diff --git a/em++ b/em++ index 1663dd06..5dd860f2 100755 --- a/em++ +++ b/em++ @@ -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:])) -- cgit v1.2.3-18-g5258