diff pylons_app/config/environment.py @ 469:e94f4e54dc03

tests fix, put vcs testing tarball
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 11 Sep 2010 03:35:33 +0200
parents 7c978511c951
children 6b934c9607e7
line wrap: on
line diff
--- a/pylons_app/config/environment.py	Sat Sep 11 02:56:22 2010 +0200
+++ b/pylons_app/config/environment.py	Sat Sep 11 03:35:33 2010 +0200
@@ -49,10 +49,10 @@
 
     #sets the c attribute access when don't existing attribute are accessed
     config['pylons.strict_tmpl_context'] = True
-    
+    test = os.path.split(config['__file__'])[-1] == 'tests.ini'
     #MULTIPLE DB configs
     # Setup the SQLAlchemy database engine
-    if config['debug'] and os.path.split(config['__file__'])[-1] != 'tests.ini':
+    if config['debug'] and not test:
         #use query time debugging.
         from pylons_app.lib.timerproxy import TimerProxy
         sa_engine_db1 = engine_from_config(config, 'sqlalchemy.db1.',