diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-05 09:49:51 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-05 09:49:51 -0700 |
commit | 252869f1624d58c90bcc9748464b3034dbc566da (patch) | |
tree | 8890c4e2d7c15ce74dfbfcda43bfd14314eb71b2 /tools/dead_function_eliminator.py | |
parent | 734b1450b5dc644065bd8705a5f1a7b8074cbc61 (diff) | |
parent | 19a52a996de0adb1ea598ff1ae112923f3e33fd2 (diff) |
Merge pull request #86 from SiggyBar/master
Misc fixes to make emscripten run (better) on Windows
Diffstat (limited to 'tools/dead_function_eliminator.py')
-rwxr-xr-x | tools/dead_function_eliminator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dead_function_eliminator.py b/tools/dead_function_eliminator.py index d6f96536..9106f8b7 100755 --- a/tools/dead_function_eliminator.py +++ b/tools/dead_function_eliminator.py @@ -11,9 +11,9 @@ to remove them before Emscripten runs. import os, sys, 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()) infile = sys.argv[1] |