aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py
index f92793d4..d9953c14 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -18,12 +18,11 @@ import os, unittest, tempfile, shutil, time, inspect, sys, math, glob, tempfile,
# Setup
-__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 *
# Sanity check for config