aboutsummaryrefslogtreecommitdiff
path: root/tools/emmaken.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-05 09:49:51 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-05 09:49:51 -0700
commit252869f1624d58c90bcc9748464b3034dbc566da (patch)
tree8890c4e2d7c15ce74dfbfcda43bfd14314eb71b2 /tools/emmaken.py
parent734b1450b5dc644065bd8705a5f1a7b8074cbc61 (diff)
parent19a52a996de0adb1ea598ff1ae112923f3e33fd2 (diff)
Merge pull request #86 from SiggyBar/master
Misc fixes to make emscripten run (better) on Windows
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