diff options
author | SiggyBar <sigmund_vik@yahoo.com> | 2011-09-23 13:37:12 +0300 |
---|---|---|
committer | SiggyBar <sigmund_vik@yahoo.com> | 2011-09-23 13:37:12 +0300 |
commit | 5a2bdcfa7c385ce1e56c4e66264a6947ce795314 (patch) | |
tree | f750c5831c3714c99564294c6986fa0c0d5e8097 | |
parent | 9bdb0b828dada80c54efa5900b0a38e088ffcff0 (diff) |
Edited tools/dead_function_eliminator.py via GitHub
-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] |