aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-07-13 21:44:19 +0300
committermax99x <max99x@gmail.com>2011-07-13 21:44:19 +0300
commitfcacb4c13c73f2febfa7dabe2ffc70c727ea7762 (patch)
tree77a6cd18e3152f9ffff3e616ea7105a789d7d24d /tools/shared.py
parent8ffd5c52cab224dd582d5a1c2973696f41742280 (diff)
parentdc24fffc94606ccb566a3e6bb8dae5543f1ab790 (diff)
Merge branch 'master' of github.com:max99x/emscripten
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 8cb602df..9ccc2105 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -1,6 +1,10 @@
import shutil, time, os
from subprocess import Popen, PIPE, STDOUT
+abspath = os.path.abspath(os.path.dirname(__file__))
+def path_from_root(*pathelems):
+ return os.path.join(os.path.sep, *(abspath.split(os.sep)[:-1] + list(pathelems)))
+
CONFIG_FILE = os.path.expanduser('~/.emscripten')
if not os.path.exists(CONFIG_FILE):
shutil.copy(path_from_root('settings.py'), CONFIG_FILE)
@@ -17,6 +21,8 @@ LLVM_DIS_OPTS = ['-show-annotations'] # For LLVM 2.8+. For 2.7, you may need to
LLVM_INTERPRETER=os.path.expanduser(os.path.join(LLVM_ROOT, 'lli'))
LLVM_COMPILER=os.path.expanduser(os.path.join(LLVM_ROOT, 'llc'))
+BINDINGS_GENERATOR = path_from_root('tools', 'bindings_generator.py')
+
# Engine tweaks
if '-s' not in SPIDERMONKEY_ENGINE: