aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 86569e73..ae1ca94b 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -1,9 +1,9 @@
import shutil, time, os
from subprocess import Popen, PIPE, STDOUT
+__rootpath__ = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
def path_from_root(*pathelems):
- rootpath = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
- return os.path.join(rootpath, *pathelems)
+ return os.path.join(__rootpath__, *pathelems)
CONFIG_FILE = os.path.expanduser('~/.emscripten')
if not os.path.exists(CONFIG_FILE):