aboutsummaryrefslogtreecommitdiff
path: root/tools/emmakenxx.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/emmakenxx.py
parentf7bab2b692cfa4cdf33185c123404848c268d02b (diff)
path fixes
Diffstat (limited to 'tools/emmakenxx.py')
-rwxr-xr-xtools/emmakenxx.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/emmakenxx.py b/tools/emmakenxx.py
index 0fd01d62..31658df2 100755
--- a/tools/emmakenxx.py
+++ b/tools/emmakenxx.py
@@ -6,9 +6,9 @@ see emmaken.py
import os, sys
+__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())
emmaken = path_from_root('tools', 'emmaken.py')