mailman needs more extensive sys.path hacking

Bug #435604 reported by Barry Warsaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Barry Warsaw

Bug Description

At the top of Mailman's mm_cfg.py file, we have this bit of sys.path hackery:

# Set up Mailman's sys.path to pick up the top of Launchpad's tree
import sys
sys.path.insert(0, '/home/barry/projects/launchpad/pristine/lib')

this is no longer enough though, because e.g. zope.i18nmessageid is no longer in lib, it's an egg. So it fails with an import error in mm_cfg.py trying to import canonical.launchpad.mailman.monkeypatches.defaults

We need to extend the sys.path hacking here to ensure that all the eggs are on sys.path as well. Probably importing _pythonpath will do it.

Related branches

Brad Crittenden (bac)
Changed in launchpad-registry:
importance: High → Critical
Revision history for this message
Barry Warsaw (barry) wrote :

Don't forget though that mm_cfg.py is autogenerated from the template in lib/canonical/launchpad/mailman/monkeypatches/__init__.py so the hack must be added there.

Barry Warsaw (barry)
Changed in launchpad-registry:
status: Triaged → In Progress
Barry Warsaw (barry)
Changed in launchpad-registry:
status: In Progress → Fix Committed
Barry Warsaw (barry)
Changed in launchpad-registry:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.