aboutsummaryrefslogtreecommitdiff
path: root/emscripten.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 /emscripten.py
parenta9f082c2d60417730d11d2c0dc9da7e6e5ed2e00 (diff)
parent252869f1624d58c90bcc9748464b3034dbc566da (diff)
fix merge conflicts
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/emscripten.py b/emscripten.py
index 32be4450..e7cf1fcc 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -14,10 +14,12 @@ from tools import shared
TEMP_FILES_TO_CLEAN = []
-def path_from_root(*target):
- """Returns the absolute path to the target from the emscripten root."""
- abspath = os.path.abspath(os.path.dirname(__file__))
- return os.path.join(os.path.sep, *(abspath.split(os.sep) + list(target)))
+def path_from_root(*pathelems):
+ """Returns the absolute path for which the given path elements are
+ relative to the emscripten root.
+ """
+ rootpath = os.path.abspath(os.path.dirname(__file__))
+ return os.path.join(rootpath, *pathelems)
def get_temp_file(suffix):