Update of /cvsroot/monetdb/clients/src/python/Cimpl/MonetSQLdb
In directory 
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16682/src/python/Cimpl/MonetSQLdb

Modified Files:
      Tag: Clients_1-20
        __init__.py 
Log Message:
fallback to CMapi if MonetDB.CMapi is not available


Index: __init__.py
===================================================================
RCS file: /cvsroot/monetdb/clients/src/python/Cimpl/MonetSQLdb/__init__.py,v
retrieving revision 1.3.4.1
retrieving revision 1.3.4.2
diff -u -d -r1.3.4.1 -r1.3.4.2
--- __init__.py 20 Oct 2007 20:30:33 -0000      1.3.4.1
+++ __init__.py 21 Oct 2007 08:52:21 -0000      1.3.4.2
@@ -42,7 +42,12 @@
 paramstyle = "pyformat"
 
 
-from MonetDB.CMapi import *
+try:
+    from MonetDB.CMapi import *
+except ImportError:
+    # if run from the build directory, CMapi is not in the MonetDB module
+    from CMapi import *
+
 from monetexceptions import *
 import cursors, converters
 


-------------------------------------------------------------------------
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