summaryrefslogtreecommitdiff
path: root/tools/emmaken.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-05 09:55:48 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-05 09:55:48 -0700
commit3b7e9141422c6106b9f406f72bc327228945728d (patch)
treec4c617fd4cbce98a3a14c2b2dfad987f39366ab4 /tools/emmaken.py
parenta9f082c2d60417730d11d2c0dc9da7e6e5ed2e00 (diff)
parent252869f1624d58c90bcc9748464b3034dbc566da (diff)
fix merge conflicts
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 f906d958..29268ae2 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