aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiggyBar <sigmund_vik@yahoo.com>2011-09-23 13:46:07 +0300
committerSiggyBar <sigmund_vik@yahoo.com>2011-09-23 13:46:07 +0300
commit4ce3d61b0f76df241a889116d0610c5d454fc3ad (patch)
tree443c1e6443eb3520d01b04e655b4298b679745f0
parentf46b1d25bedac2ecde99ec8841dce4e8196442b4 (diff)
Edited tools/shared.py via GitHub
-rw-r--r--tools/shared.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 83c921da..4b68555a 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -1,9 +1,9 @@
import shutil, time, os
from subprocess import Popen, PIPE, STDOUT
-abspath = os.path.abspath(os.path.dirname(__file__))
def path_from_root(*pathelems):
- return os.path.join(os.path.sep, *(abspath.split(os.sep)[:-1] + list(pathelems)))
+ rootpath = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+ return os.path.join(rootpath, *pathelems)
CONFIG_FILE = os.path.expanduser('~/.emscripten')
if not os.path.exists(CONFIG_FILE):