aboutsummaryrefslogtreecommitdiff
path: root/tools/bindings_generator.py
diff options
context:
space:
mode:
authorSiggyBar <sigmund_vik@yahoo.com>2011-09-23 13:36:31 +0300
committerSiggyBar <sigmund_vik@yahoo.com>2011-09-23 13:36:31 +0300
commit9bdb0b828dada80c54efa5900b0a38e088ffcff0 (patch)
treea72d185e2f03a8b8fca663b196dac8cdc3191394 /tools/bindings_generator.py
parent734b1450b5dc644065bd8705a5f1a7b8074cbc61 (diff)
Edited tools/bindings_generator.py via GitHub
Diffstat (limited to 'tools/bindings_generator.py')
-rwxr-xr-xtools/bindings_generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bindings_generator.py b/tools/bindings_generator.py
index 0a1a75cc..4c4bfd3d 100755
--- a/tools/bindings_generator.py
+++ b/tools/bindings_generator.py
@@ -47,9 +47,9 @@ NOTE: ammo.js is currently the biggest consumer of this code. For some
import os, sys, glob, re
-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)))
+ rootpath = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+ return os.path.join(rootpath, *pathelems)
exec(open(path_from_root('tools', 'shared.py'), 'r').read())
# Find ply and CppHeaderParser