aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
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):