diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-11-15 19:25:34 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-11-15 19:25:34 -0500 |
commit | 756aa2724e495b8a969bca73d133b27615a343e7 (patch) | |
tree | 8e22e4f714c52933ab4cdca538194660524e86f1 /sqla_nose.py | |
parent | 40d5a32e59a49075129211358f00e857dac73885 (diff) | |
download | sqlalchemy-756aa2724e495b8a969bca73d133b27615a343e7.tar.gz |
first step of [ticket:1949], remove the setuptools aspect
of the plugin, move it to test/bootstrap
Diffstat (limited to 'sqla_nose.py')
-rwxr-xr-x | sqla_nose.py | 11 |
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 |