Update of /cvsroot/monetdb/MonetDB/src/testing
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21513

Modified Files:
        Mtest.py.in 
Log Message:

added pythonlibdir (obtained from monetdb-config and monetdb-clients-config)
into the PYTHONPATH (in an attempt to fix the problems with tests using 
MonetSQLdb)



Index: Mtest.py.in
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/testing/Mtest.py.in,v
retrieving revision 1.320
retrieving revision 1.321
diff -u -d -r1.320 -r1.321
--- Mtest.py.in 2 Nov 2007 07:31:36 -0000       1.320
+++ Mtest.py.in 7 Nov 2007 15:44:24 -0000       1.321
@@ -102,6 +102,17 @@
     import distutils.sysconfig
     p = 
_configure(os.path.join('@QXprefix@',distutils.sysconfig.get_python_lib(1,0,"")))
     sys.path.insert(0, p)
+    try:
+        q = GetConfig('monetdb-config', '--pythonlibdir')
+        p = p + os.pathsep + q
+    except:
+        None
+    try:
+        q = GetConfig('monetdb-clients-config', '--pythonlibdir')
+        p = p + os.pathsep + q
+        p = p + os.pathsep + q + os.sep + 'MonetDB'
+    except:
+        None
     from MonetDB import monet_options
     if os.environ.has_key('PYTHONPATH'):
         p = p + os.pathsep + os.environ['PYTHONPATH']


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to