From 9081bbafa809c438902727a1da07a56d526f9dcf Mon Sep 17 00:00:00 2001 From: alexhudson Date: Sun, 2 Sep 2007 09:12:38 +0000 Subject: [PATCH] Clean up python msgapi linkage a bit. --- src/libs/python/libbongo/libs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libs/python/libbongo/libs.c b/src/libs/python/libbongo/libs.c index f7b4d9d..744138b 100644 --- a/src/libs/python/libbongo/libs.c +++ b/src/libs/python/libbongo/libs.c @@ -71,9 +71,7 @@ initlibs() MsgInit(); - MsgGetDBFDir(dbfdir); - - if (!BongoCalInit(dbfdir)) { + if (!BongoCalInit(MsgGetDir(MSGAPI_DIR_DBF, NULL, 0))) { PyErr_SetString(PyExc_ImportError, "bongo.libs error: BongoCalInit() failed"); return; @@ -103,7 +101,7 @@ initlibs() /* Add the Bongo libs */ AddLibrary(module, "cal", CalMethods, NULL); AddLibrary(module, "calcmd", CalCmdMethods, CalCmdEnums); - AddLibrary(module, "msgapi", MsgApiMethods, MsgApiEnums); + AddLibrary(module, "msgapi", MsgApiMethods, NULL); AddLibrary(module, "streamio", StreamIOMethods, NULL); AddLibrary(module, "bongojson", BongoJsonMethods, NULL); AddLibrary(module, "bongoutil", BongoUtilMethods, NULL);