a47fee
diff -up SQLAlchemy-0.9.7/sqla_nose.py.nose-use-build SQLAlchemy-0.9.7/sqla_nose.py
a47fee
--- SQLAlchemy-0.9.7/sqla_nose.py.nose-use-build	2014-07-29 13:07:44.151453336 +0200
a47fee
+++ SQLAlchemy-0.9.7/sqla_nose.py	2014-07-29 13:09:15.096785664 +0200
a47fee
@@ -11,13 +11,14 @@ import nose
a47fee
 import warnings
a47fee
 
a47fee
 
a47fee
+import glob
a47fee
 from os import path
a47fee
-for pth in ['./lib']:
a47fee
+for pth in glob.glob('build/lib*'):
a47fee
     sys.path.insert(0, path.join(path.dirname(path.abspath(__file__)), pth))
a47fee
 
a47fee
 # installing without importing SQLAlchemy, so that coverage includes
a47fee
 # SQLAlchemy itself.
a47fee
-path = "lib/sqlalchemy/testing/plugin/noseplugin.py"
a47fee
+path = glob.glob("build/lib*/sqlalchemy/testing/plugin/noseplugin.py")[0]
a47fee
 if sys.version_info >= (3, 3):
a47fee
     from importlib import machinery
a47fee
     noseplugin = machinery.SourceFileLoader("noseplugin", path).load_module()