aboutsummaryrefslogtreecommitdiff
path: root/tools/emconfiguren.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/emconfiguren.py')
-rwxr-xr-xtools/emconfiguren.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/emconfiguren.py b/tools/emconfiguren.py
index 2ea5669f..fd7b7549 100755
--- a/tools/emconfiguren.py
+++ b/tools/emconfiguren.py
@@ -9,10 +9,11 @@ This is a helper script for emmaken.py. See docs in that file for more info.
import os, sys
-__rootpath__ = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+__rootpath__ = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
def path_from_root(*pathelems):
return os.path.join(__rootpath__, *pathelems)
-exec(open(path_from_root('tools', 'shared.py'), 'r').read())
+sys.path += [path_from_root('')]
+from tools.shared import *
Building.configure(sys.argv[1:])