aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiggyBar <sigmund_vik@yahoo.com>2011-09-23 13:41:37 +0300
committerSiggyBar <sigmund_vik@yahoo.com>2011-09-23 13:41:37 +0300
commitc5763b01d1b3ba9c69c65aa9988fa1c4ba9b20d1 (patch)
treed5686c1e53673e4bd7a08e4aad7ab612d15fb9db
parent7ff3aa30d5cc21b29104749a342cd04e5c80387b (diff)
Edited tools/emmakenxx.py via GitHub
-rwxr-xr-xtools/emmakenxx.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/emmakenxx.py b/tools/emmakenxx.py
index e271d765..f473a8bf 100755
--- a/tools/emmakenxx.py
+++ b/tools/emmakenxx.py
@@ -6,9 +6,9 @@ see emmaken.py
import os, sys
-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)
exec(open(path_from_root('tools', 'shared.py'), 'r').read())
emmaken = path_from_root('tools', 'emmaken.py')