aboutsummaryrefslogtreecommitdiff
path: root/em++
diff options
context:
space:
mode:
Diffstat (limited to 'em++')
-rwxr-xr-xem++9
1 files changed, 2 insertions, 7 deletions
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:]))