aboutsummaryrefslogtreecommitdiff
path: root/tools/emmaken.py
diff options
context:
space:
mode:
authorSiggyBar <sigmund_vik@yahoo.com>2011-09-23 13:41:12 +0300
committerSiggyBar <sigmund_vik@yahoo.com>2011-09-23 13:41:12 +0300
commit7ff3aa30d5cc21b29104749a342cd04e5c80387b (patch)
tree9a49986e65a71544f75e19e74d5fe2e540ca565d /tools/emmaken.py
parent5a2bdcfa7c385ce1e56c4e66264a6947ce795314 (diff)
Edited tools/emmaken.py via GitHub
Diffstat (limited to 'tools/emmaken.py')
-rwxr-xr-xtools/emmaken.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/emmaken.py b/tools/emmaken.py
index 76c2e9c8..c04aaf30 100755
--- a/tools/emmaken.py
+++ b/tools/emmaken.py
@@ -59,9 +59,9 @@ import subprocess
print >> sys.stderr, 'emmaken.py: ', ' '.join(sys.argv)
-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())
# If this is a configure-type thing, just do that