aboutsummaryrefslogtreecommitdiff
path: root/tools/dead_function_eliminator.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-05 11:12:45 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-05 11:12:45 -0700
commit417d47d0482cc63f97c1b5fb95be40e993539b1e (patch)
tree5483107860e7fdc453905c4db0281c85ac6fb32c /tools/dead_function_eliminator.py
parentf7bab2b692cfa4cdf33185c123404848c268d02b (diff)
path fixes
Diffstat (limited to 'tools/dead_function_eliminator.py')
-rwxr-xr-xtools/dead_function_eliminator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dead_function_eliminator.py b/tools/dead_function_eliminator.py
index 9106f8b7..252ba697 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
+__rootpath__ = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
def path_from_root(*pathelems):
- rootpath = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
- return os.path.join(rootpath, *pathelems)
+ return os.path.join(__rootpath__, *pathelems)
exec(open(path_from_root('tools', 'shared.py'), 'r').read())
infile = sys.argv[1]