aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorSiggyBar <sigmund_vik@yahoo.com>2011-09-23 13:43:03 +0300
committerSiggyBar <sigmund_vik@yahoo.com>2011-09-23 13:43:03 +0300
commit3d07ab5d9fb0d6574549e36f6d1d5b331f8595ba (patch)
tree607ac8020b81ba4f19145882a4354ad634a4f384 /emscripten.py
parentc5763b01d1b3ba9c69c65aa9988fa1c4ba9b20d1 (diff)
Edited emscripten.py via GitHub
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 022068c8..717865ef 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -18,10 +18,12 @@ GCC_DATA_LAYOUT = ('target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16'
'-v128:128:128-a0:0:64-f80:32:32-f128:128:128-n8:16:32"')
-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):