summaryrefslogtreecommitdiff
path: root/sqla_nose.py
diff options
context:
space:
mode:
Diffstat (limited to 'sqla_nose.py')
-rwxr-xr-xsqla_nose.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/sqla_nose.py b/sqla_nose.py
index 302fb5b08..6482958cb 100755
--- a/sqla_nose.py
+++ b/sqla_nose.py
@@ -8,12 +8,11 @@ require that SQLA's testing plugin be installed via setuptools.
"""
import sys
-try:
- from sqlalchemy_nose.noseplugin import NoseSQLAlchemy
-except ImportError:
- from os import path
- sys.path.append(path.join(path.dirname(path.abspath(__file__)), 'lib'))
- from sqlalchemy_nose.noseplugin import NoseSQLAlchemy
+from os import path
+for pth in ['.', './lib']:
+ sys.path.insert(0, path.join(path.dirname(path.abspath(__file__)), pth))
+
+from test.bootstrap.noseplugin import NoseSQLAlchemy
import nose