[Fusionforge-commits] r11478 - trunk/src/plugins/mailman/usr/lib/mailman/Mailman

Christian Bayle cbayle at libremir.placard.fr.eu.org
Tue Nov 9 02:18:36 CET 2010


Author: cbayle
Date: 2010-11-09 02:18:36 +0100 (Tue, 09 Nov 2010)
New Revision: 11478

Modified:
   trunk/src/plugins/mailman/usr/lib/mailman/Mailman/PsycopgConnector.py
Log:
Ugly mailman Fix


Modified: trunk/src/plugins/mailman/usr/lib/mailman/Mailman/PsycopgConnector.py
===================================================================
--- trunk/src/plugins/mailman/usr/lib/mailman/Mailman/PsycopgConnector.py	2010-11-08 20:36:28 UTC (rev 11477)
+++ trunk/src/plugins/mailman/usr/lib/mailman/Mailman/PsycopgConnector.py	2010-11-09 01:18:36 UTC (rev 11478)
@@ -36,6 +36,9 @@
 	def __db_connect__(self):
 		if mm_cfg.connection == 0:
 			try:
+				# Dirty ack, I dunno exactly why I really need this for web
+				distdir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3],'dist-packages')
+				sys.path.append(distdir)
 				import psycopg2
 			except ImportError:
 				return False




More information about the Fusionforge-commits mailing list