diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-05 11:12:45 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-05 11:12:45 -0700 |
commit | 417d47d0482cc63f97c1b5fb95be40e993539b1e (patch) | |
tree | 5483107860e7fdc453905c4db0281c85ac6fb32c /emscripten.py | |
parent | f7bab2b692cfa4cdf33185c123404848c268d02b (diff) |
path fixes
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 4 |
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): |