diff options
author | SiggyBar <sigmund_vik@yahoo.com> | 2011-09-23 13:36:31 +0300 |
---|---|---|
committer | SiggyBar <sigmund_vik@yahoo.com> | 2011-09-23 13:36:31 +0300 |
commit | 9bdb0b828dada80c54efa5900b0a38e088ffcff0 (patch) | |
tree | a72d185e2f03a8b8fca663b196dac8cdc3191394 /tools/bindings_generator.py | |
parent | 734b1450b5dc644065bd8705a5f1a7b8074cbc61 (diff) |
Edited tools/bindings_generator.py via GitHub
Diffstat (limited to 'tools/bindings_generator.py')
-rwxr-xr-x | tools/bindings_generator.py | 4 |
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 |