aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/emscripten.py b/emscripten.py
index e7cf1fcc..3fadf82b 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -14,12 +14,12 @@ from tools import shared
TEMP_FILES_TO_CLEAN = []
+__rootpath__ = os.path.abspath(os.path.dirname(__file__))
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)
+ return os.path.join(__rootpath__, *pathelems)
def get_temp_file(suffix):